Skip to content

Commit 57f09be

Browse files
committed
more fixes
1 parent 221d351 commit 57f09be

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/linalg/diagonal.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ end
350350
let D1 = Diagonal(rand(5)), D2 = Diagonal(rand(5))
351351
@test LinAlg.mul1!(copy(D1),D2) == D1*D2
352352
@test LinAlg.mul2!(D1,copy(D2)) == D1*D2
353-
@test LinAlg.mul1!(copy(D1),D2) == D1*D2
354-
@test LinAlg.mul2!(D1,copy(D2)) == D1*D2
355-
@test LinAlg.mul1!(copy(D1),D2) == D1*D2
356-
@test LinAlg.mul2!(D1,copy(D2)) == D1*D2
353+
@test LinAlg.mul1!(copy(D1),transpose(D2)) == D1*transpose(D2)
354+
@test LinAlg.mul2!(transpose(D1),copy(D2)) == transpose(D1)*D2
355+
@test LinAlg.mul1!(copy(D1),adjoint(D2)) == D1*adjoint(D2)
356+
@test LinAlg.mul2!(adjoint(D1),copy(D2)) == adjoint(D1)*D2
357357
end
358358

359359
@testset "multiplication of QR Q-factor and Diagonal (#16615 spot test)" begin

test/linalg/triangular.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ end
494494
let n = 5
495495
A = rand(Float16, n, n)
496496
B = rand(Float16, n-1, n-1)
497-
498497
@test_throws DimensionMismatch rdiv!(A, LowerTriangular(B))
499498
@test_throws DimensionMismatch rdiv!(A, UpperTriangular(B))
500499
@test_throws DimensionMismatch rdiv!(A, UnitLowerTriangular(B))

0 commit comments

Comments
 (0)