[R] How to check a matrix is positive definite?

Spencer Graves spencer.graves at pdf.com
Sat Mar 22 21:15:00 CET 2003


 > tst <- array(c(1,2,2,1), dim=c(2,2))
 > eigen(tst)
$values
[1]  3 -1

$vectors
           [,1]       [,2]
[1,] 0.7071068  0.7071068
[2,] 0.7071068 -0.7071068

Does this answer your question?
Spencer Graves

Feng Zhang wrote:
> Hey, all
> 
> Given a square matrix, how can I check if this matrix
> is positive definite or not?
> 
> Thanks.
> 
> Fred
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list