Skip to content

Readme is somewhat unclear #218

@jishnub

Description

@jishnub
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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions