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
This came up here: https://discourse.julialang.org/t/preventing-collect-on-broadcasting-expressions/57996
julia> using LazyArrays, FillArrays julia> BroadcastArray(+, fill(1,2), 3) 2-element BroadcastVector{Int64, typeof(+), Tuple{Vector{Int64}, Int64}}: 4 4 julia> broadcast(+, Fill(1,2), 3) 2-element Fill{Int64, 1, Tuple{Base.OneTo{Int64}}} = 4 julia> BroadcastArray(+, Fill(1,2), 3) ERROR: type Fill has no field f Stacktrace: [1] getproperty(x::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}, f::Symbol) @ Base ./Base.jl:33 [2] call(#unused#::ArrayLayouts.FillLayout, a::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}) @ LazyArrays ~/.julia/packages/LazyArrays/MAEFm/src/lazyapplying.jl:21 [3] call(a::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}) @ LazyArrays ~/.julia/packages/LazyArrays/MAEFm/src/lazyapplying.jl:22 [4] BroadcastArray(A::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}) @ LazyArrays ~/.julia/packages/LazyArrays/MAEFm/src/lazybroadcasting.jl:46 [5] BroadcastArray(f::Function, A::Fill{Int64, 1, Tuple{Base.OneTo{Int64}}}, As::Int64) @ LazyArrays ~/.julia/packages/LazyArrays/MAEFm/src/lazybroadcasting.jl:33 [6] top-level scope @ REPL[66]:1
The text was updated successfully, but these errors were encountered:
This is really a problem in LazyArrays.jl: in
https://github.com/JuliaArrays/LazyArrays.jl/blob/30929f3d8b87ddf8582cfd69e2e67d77082e113a/src/lazybroadcasting.jl#L58
We call broadcasted but forget that it might return something other than a Broadcasted.
broadcasted
Broadcasted
Sorry, something went wrong.
BroadcastStyle
AbstractFill
Successfully merging a pull request may close this issue.
This came up here: https://discourse.julialang.org/t/preventing-collect-on-broadcasting-expressions/57996
The text was updated successfully, but these errors were encountered: