Skip to content

Commit 5dde5db

Browse files
committed
Add tests of Hermitian method.
1 parent 1a652b1 commit 5dde5db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,11 @@ import RectangularFullPacked: Ac_mul_A_RFP, TriangularRFP
105105
@test rmul!(copy(U), B) rmul!(TriangularRFP(U, :U), B)
106106
@test lmul!(B, copy(U)) lmul!(B, TriangularRFP(U, :U; transr=:T))
107107
end
108+
109+
@testset "Hermitian from Triangular" begin
110+
U = lu(rand(7,7)).U
111+
@test Hermitian(TriangularRFP(U, :U)) Hermitian(U, :U)
112+
@test Hermitian(TriangularRFP(U, :U), :U) Hermitian(U, :U)
113+
@test_throws ArgumentError Hermitian(TriangularRFP(U, :U), :L)
114+
end
108115
end

0 commit comments

Comments
 (0)