Skip to content

Commit 04fa3f9

Browse files
authored
More tests for diagm (#2791)
1 parent 9db8376 commit 04fa3f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/libraries/cublas/level3.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,16 @@ k = 13
483483

484484
@test A h_A
485485
@test B h_B
486+
487+
diagA = diagm(m, m, 0 => d_A)
488+
diagind_A = diagind(diagA, 0)
489+
h_A = Array(diagA[diagind_A])
490+
@test A h_A
491+
492+
diagA = diagm(m, m, d_A)
493+
diagind_A = diagind(diagA, 0)
494+
h_A = Array(diagA[diagind_A])
495+
@test A h_A
486496
end
487497
if elty <: Complex
488498
@testset "herk!" begin

0 commit comments

Comments
 (0)