You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try and @devec with array of arrays it fails (for example these are two distinct errors):
julia> v = [rand(5) for _ in 1:5];
julia> sum(v); # works ok
julia> @devec a = sum(v)
ERROR: no method zero(Type{Array{Float64,1}})
in anonymous at no file
julia> p = [rand(5, 5) for _ in 1:5];
julia> p .* v; # works ok
julia> @devec a = p .* v
ERROR: no method get_value(Array{Array{Float64,2},1}, Int64)
in anonymous at no file
Does this qualify as "at once" ?
I had wanted to use `@devec` to do this without the temporary, but for the moment (as far as I can make out) this appears not to be possible lindahua/Devectorize.jl#31.
Also, fix question 3 (atm it's a repeat of 2).
If you try and
@devec
with array of arrays it fails (for example these are two distinct errors):This came up trying to solve one of the 100 numpy/julia problems.
Note: The same error is returned using ImmutableArrays (with more specific types). I'm not sure what could be used in the else block...
The text was updated successfully, but these errors were encountered: