-
-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
using RecursiveArrayTools
a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
vA = VectorOfArray(a)
vB = VectorOfArray(b)
vA .+ vB # Now all standard array stuff works!
I'm not sure what works now that didn't work earlier? I see
julia> vA .+ vB # Now all standard array stuff works!
VectorOfArray{Int64,2}:
3-element Vector{Vector{Int64}}:
[2, 4, 6]
[8, 10, 12]
[14, 16, 18]
julia> a .+ b
3-element Vector{Vector{Int64}}:
[2, 4, 6]
[8, 10, 12]
[14, 16, 18]
so I'm not sure what the wrapper is adding here. Maybe this could be clarified.
Metadata
Metadata
Assignees
Labels
No labels