Commit fa36501
authored
Update vector_of_array.jl
```julia
julia> using RecursiveArrayTools, StaticArrays
julia> s1 = SVector(1,2);
julia> s2 = SVector(3,4);
julia> a = VectorOfArray([s1,s2])
VectorOfArray{Int64,2}
u:
2-element Array{SVector{2,Int64},1}:
[1, 2]
[3, 4]
# Old behaviour
julia> a[:,2]
2-element Array{Int64,1}:
3
4
# New behaviour
julia> a[:,2]
2-element SVector{2,Int64}:
3
4
```1 parent b1b147c commit fa36501
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments