Skip to content

Commit d81e3ce

Browse files
committed
Test for Cholesky with lower storage
1 parent b4c93a7 commit d81e3ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/pdmtypes.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ for T in [Float64, Float32]
1919
X = convert(T,2.0)
2020

2121
test_pdmat(PDMat(M), M, cmat_eq=true, verbose=1) #tests of PDMat
22+
cholL = Cholesky(Matrix(transpose(cholesky(M).factors)), 'L', 0)
23+
test_pdmat(PDMat(cholL), M, cmat_eq=true, verbose=1) #tests of PDMat
2224
test_pdmat(PDiagMat(V), Matrix(Diagonal(V)), cmat_eq=true, verbose=1) #tests of PDiagMat
2325
test_pdmat(ScalMat(3,x), x*Matrix{T}(I, 3, 3), cmat_eq=true, verbose=1) #tests of ScalMat
2426
test_pdmat(PDSparseMat(sparse(M)), M, cmat_eq=true, verbose=1, t_eig=false)

0 commit comments

Comments
 (0)