С помощью простой функции, такой как
function fun(x::Real, y::Real)
x, y
end
что я хочу вызвать с помощью pmap (), выполнив
pmap(fun, [x for x=0:.1:2], [y for y=4:-.1:2])
Юля выдает эту ошибку
ERROR: LoadError: MethodError: Cannot `convert` an object of type Tuple{Float64,Float64} to an object of type AbstractFloat
This may have arisen from a call to the constructor AbstractFloat(...),
since type constructors fall back to convert methods.
Я действительно не понимаю, что здесь происходит.
Согласно некоторым исследованиям, которые я провел:
It's well-established that to call map on an N-argument function, you pass N lists (or whatever collection) to map:
julia> map(+, (1,2), (3,4))
(4,6)
Что тогда не так?