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 dbefc57 commit fda0401Copy full SHA for fda0401
test/diagonal.jl
@@ -1258,16 +1258,18 @@ end
1258
end
1259
1260
@testset "rmul!/lmul! for adj/trans" begin
1261
- A = rand(5,4); B = similar(A)
1262
- for f in (adjoint, transpose)
1263
- D = Diagonal(rand(size(A,1)))
1264
- B .= A
1265
- rmul!(f(B), D)
1266
- @test f(B) == f(A) * D
1267
- D = Diagonal(rand(size(A,2)))
1268
1269
- lmul!(D, f(B))
1270
- @test f(B) == D * f(A)
+ for T in (Float64, ComplexF64)
+ A = rand(T,5,4); B = similar(A)
+ for f in (adjoint, transpose)
+ D = Diagonal(rand(size(A,1)))
+ B .= A
+ rmul!(f(B), D)
+ @test f(B) == f(A) * D
+ D = Diagonal(rand(size(A,2)))
+ lmul!(D, f(B))
1271
+ @test f(B) == D * f(A)
1272
+ end
1273
1274
1275
0 commit comments