Skip to content

Commit f0c6aea

Browse files
committed
Added PDMat test with Matrix{Int} for #117
1 parent 987faf8 commit f0c6aea

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
@@ -48,3 +48,5 @@ a = PDMat([1 0.5; 0.5 1])
4848
@inferred whiten(a, ones(2))
4949
@inferred unwhiten(a, ones(2))
5050

51+
# convert Matrix type to the same Cholesky type (#117)
52+
@test PDMat([1 0; 0 1]) == [1.0 0.0; 0.0 1.0]

0 commit comments

Comments
 (0)