Skip to content

Commit 8c87396

Browse files
committed
constructor needs complex too
1 parent 69ee70b commit 8c87396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/linalg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,9 +852,9 @@ end
852852
end
853853
for M in (A, B, C)
854854
D = Diagonal(M * M')
855-
a = spzeros(size(D, 1))
855+
a = spzeros(Complex{Float64}, size(D, 1))
856856
a[1:3] = rand(Complex{Float64}, 3)
857-
b = spzeros(size(D, 1))
857+
b = spzeros(Complex{Float64}, size(D, 1))
858858
b[1:3] = rand(Complex{Float64}, 3)
859859
@test dot(a, D, b) dot(a, sparse(D), b)
860860
@test dot(b, D, a) dot(b, sparse(D), a)

0 commit comments

Comments
 (0)