-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
julia> using LazyArrays
julia> v = Accumulate(*, Vcat(1, BroadcastVector(+, 1:11, cache(1:11))));
julia> v[2]
ERROR: FieldError: type SubArray has no field `array`, available fields: `parent`, `indices`, `offset1`, `stride1`
Stacktrace:
[1] getproperty
@ .\Base_compiler.jl:54 [inlined]
[2] layout_broadcasted(::ArrayLayouts.UnknownLayout, ::LazyArrays.CachedLayout{…}, op::Function, A::UnitRange{…}, B::SubArray{…})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\cache.jl:378
[3] layout_broadcasted(op::Function, A::UnitRange{Int64}, B::SubArray{Int64, 1, LazyArrays.CachedArray{…}, Tuple{…}, false})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazybroadcasting.jl:10
[4] broadcasted(::LazyArrays.CachedArrayStyle{…}, op::Function, A::UnitRange{…}, B::SubArray{…})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazybroadcasting.jl:13
[5] broadcasted
@ .\broadcast.jl:1353 [inlined]
[6] _broadcastarray2broadcasted
@ C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazybroadcasting.jl:92 [inlined]
[7] _broadcastarray2broadcasted
@ C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazybroadcasting.jl:98 [inlined]
[8] copyto!_layout(::ArrayLayouts.DenseColumnMajor, ::LazyArrays.BroadcastLayout{…}, dest::SubArray{…}, bc::SubArray{…})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazybroadcasting.jl:43
[9] copyto!_layout(dest::SubArray{…}, src::SubArray{…})
@ ArrayLayouts C:\Users\djv23\.julia\packages\ArrayLayouts\cFEh2\src\ArrayLayouts.jl:273
[10] copyto!(dest::SubArray{…}, src::SubArray{…})
@ ArrayLayouts C:\Users\djv23\.julia\packages\ArrayLayouts\cFEh2\src\ArrayLayouts.jl:282
[11] vcat_copyto!(::SubArray{Int64, 1, Vector{…}, Tuple{…}, true}, ::FillArrays.Fill{Int64, 1, Tuple{…}}, ::Vararg{Any})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazyconcat.jl:259
[12] copyto!_layout
@ C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazyconcat.jl:228 [inlined]
[13] copyto!_layout
@ C:\Users\djv23\.julia\packages\ArrayLayouts\cFEh2\src\ArrayLayouts.jl:273 [inlined]
[14] copyto!
@ C:\Users\djv23\.julia\packages\ArrayLayouts\cFEh2\src\ArrayLayouts.jl:282 [inlined]
[15] cache_filldata!(K::Accumulate{Int64, 1, typeof(*), Vector{…}, ApplyArray{…}}, inds::UnitRange{Int64})
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\lazyoperations.jl:442
[16] _vec_resizedata!(B::Accumulate{Int64, 1, typeof(*), Vector{…}, ApplyArray{…}}, n::Int64)
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\cache.jl:252
[17] resizedata!
@ C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\cache.jl:260 [inlined]
[18] resizedata!
@ C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\cache.jl:228 [inlined]
[19] getindex(B::Accumulate{Int64, 1, typeof(*), Vector{Int64}, ApplyArray{Int64, 1, typeof(vcat), Tuple{…}}}, k::Int64)
@ LazyArrays C:\Users\djv23\.julia\packages\LazyArrays\wiNHR\src\cache.jl:85
[20] top-level scope
@ REPL[3]:1
Some type information was truncated. Use `show(err)` to see complete types.Metadata
Metadata
Assignees
Labels
No labels