Skip to content

Commit c437beb

Browse files
committed
Test for empty Symmetric and BlasFlag.NONE
1 parent 84fd21b commit c437beb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/matmul.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,4 +1193,20 @@ end
11931193
@test all(iszero, w)
11941194
end
11951195

1196+
@testset "zero-size matmul" begin
1197+
A = zeros(0,2)
1198+
S = Symmetric(zeros(0,0))
1199+
@test S * A == A
1200+
@test A' * S == A'
1201+
S = Symmetric(zeros(2,2))
1202+
@test S * A' == A'
1203+
@test A * S == A
1204+
end
1205+
1206+
@testset "BlasFlag.NONE => generic_matmatmul!" begin
1207+
A = ones(2,2)
1208+
S = Symmetric(ones(2,2))
1209+
@test mul!(similar(A), S, A, big(1), big(0)) S * A
1210+
end
1211+
11961212
end # module TestMatmul

0 commit comments

Comments
 (0)