We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ref
I understand Ref as a length-1 array (tell me how flawed this is), but that's not how it behaves in a broadcast. From the discussion at https://discourse.julialang.org/t/broadcasting-and-arrays-of-arrays/7444/5 :
julia> [1, 2] .- Ref([1, 2]) # behaves like [1, 2] .- [1] 2-element Array{Int64,1}: 0 1 julia> [1, 2] .- [[1, 2]] 2-element Array{Array{Int64,1},1}: [0, -1] [1, 0]
(thanks @rdeits )
The text was updated successfully, but these errors were encountered:
One part of the problem is
julia> eltype(Ref([1,2])) Int64 julia> eltype(Ref(3)) Int64
That seems broken.
Sorry, something went wrong.
Ah, the classical #15303 mixup.
I think that’s actually #21527
will be fixed when deprecations get deleted
julia> eltype(Ref{Vector{Int}}([1,2])) Array{Int64,1}
No branches or pull requests
I understand
Ref
as a length-1 array (tell me how flawed this is), but that's not how it behaves in a broadcast. From the discussion at https://discourse.julialang.org/t/broadcasting-and-arrays-of-arrays/7444/5 :(thanks @rdeits )
The text was updated successfully, but these errors were encountered: