We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed07b28 commit fd1a84eCopy full SHA for fd1a84e
test/copy_static_array_test.jl
@@ -82,3 +82,23 @@ b = recursivecopy(a)
82
@test a[1] == b[1]
83
a[1] *= 2
84
@test a[1] != b[1]
85
+
86
+# Broadcasting when SVector{1}
87
+a = [SVector(0.0) for _ in 1:2]
88
+a_voa = VectorOfArray(a)
89
+b_voa = copy(a_voa)
90
+a_voa[1] = SVector(1.0)
91
+a_voa[2] = SVector(1.0)
92
+@. b_voa = a_voa
93
+@test b_voa[1] == a_voa[1]
94
+@test b_voa[2] == a_voa[2]
95
96
+# Broadcasting when SVector{N} where N > 1
97
+a = [SVector(0.0, 0.0) for _ in 1:2]
98
99
100
+a_voa[1] = SVector(1.0, 1.0)
101
+a_voa[2] = SVector(1.0, 1.0)
102
103
104
0 commit comments