Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

test for positive definite

jft27
Beginner
495 Views
Hi,
I have some code where I am generating matrices using a MCMC method. I require that all my matrices are positive definite so I want to be able to test this and if they fail to reject that sample.
So I'm looking for the quickest way to test small matrices to see if they're positive definite.
Does anyone have a recommendation?
Jeremy
0 Kudos
1 Reply
Dmitry_B_Intel
Employee
495 Views

Jeremy,

I'd suggest you to try if Cholesky factorization succeed (see dpotrf function and friends in MKL).

Dima

0 Kudos
Reply