We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90e612 commit e2a393bCopy full SHA for e2a393b
test/broadcast.jl
@@ -14,6 +14,14 @@
14
end
15
16
@testset "Broadcast" begin
17
+ @testset "AbstractArray-of-StaticArray with scalar math" begin
18
+ v = SVector{2,Float64}[SVector{2,Float64}(1,1)]
19
+ @test @inferred(v .* 1.0)::typeof(v) == v
20
+ @test @inferred(1 .- v)::typeof(v) == v .- v
21
+ v2 = SVector{2,Int}[SVector{2,Int}(1,1)]
22
+ @test @inferred(v2 .* 1.0)::typeof(v) == v
23
+ end
24
+
25
@testset "2x2 StaticMatrix with StaticVector" begin
26
m = @SMatrix [1 2; 3 4]
27
v = SVector(1, 4)
0 commit comments