Skip to content

Commit a9ee0f5

Browse files
committed
Test for complex Diagonal
1 parent fda0401 commit a9ee0f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/diagonal.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,11 +1261,11 @@ end
12611261
for T in (Float64, ComplexF64)
12621262
A = rand(T,5,4); B = similar(A)
12631263
for f in (adjoint, transpose)
1264-
D = Diagonal(rand(size(A,1)))
1264+
D = Diagonal(rand(T, size(A,1)))
12651265
B .= A
12661266
rmul!(f(B), D)
12671267
@test f(B) == f(A) * D
1268-
D = Diagonal(rand(size(A,2)))
1268+
D = Diagonal(rand(T, size(A,2)))
12691269
B .= A
12701270
lmul!(D, f(B))
12711271
@test f(B) == D * f(A)

0 commit comments

Comments
 (0)