Skip to content

Commit

Permalink
Test logdet and pinv
Browse files Browse the repository at this point in the history
  • Loading branch information
gragusa committed Sep 30, 2019
1 parent 6a28ef3 commit 2d904c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,19 @@ end
@test eigmin(CM2) eigmin(Matrix(CM2))
@test eigmin(CM3) eigmin(Matrix(CM3))

@test logdet(CM3) logdet(Matrix(CM3))
@test logdet(CM2) logdet(Matrix(CM2))

@test pinv(CM1) pinv(Matrix(CM1))

g = mean(X, dims = 1)
@test CovarianceMatrices.quadinv(g, CM1) first(g*inv(Matrix(CM1))*g')

g = rand(5)
@test CovarianceMatrices.quadinv(g, CM1) first(g'*inv(Matrix(CM1))*g)

@test Symmetric(CM1) == Symmetric(Matrix(CM1))

end


0 comments on commit 2d904c9

Please sign in to comment.