Re: [eigen] Positive Definitenes?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

If you don't have big performance requirements, the safe way is
definitely to use the self-adjoint eigensolver to check the
eigenvalues (assuming that you already know that your matrix is
self-adjoint). If you already know that your matrix is positive
semidefinite and just want to check for invertibility, then of course
any rank-revealing decomposition will do (in the devel branch,
ColPivHouseholderQR is quite fast).

Then it might be possible to do something more efficient with LDLt but
i don't know how numerically stable that would be: this is not, in
principle, a rank-revealing decomposition, and while it allows to get
the determinant, the determinant is not always the right invertibility
check for all situations.

Benoit

2010/3/2 Gabriel <gabrielvc@xxxxxxxxx>:
> Hi list,
>
> I have not found a way to determine if a matrix is positive definite or not,
> in eigen. Is there a way? Which is it?
> Thanks, I am new to eigen,
>
> --
> ==============
> =  Gabriel Villalobos,
> =  Candidato a Doctor en Ciencias - Física, UN
> =  M.Sc. Physics, Georgia Institute of Technology
> =  Físico, Universidad Nacional de Colombia
> = Tel. Oficina. (571) 3165000 - 13031
> = gvillalobosc@xxxxxxxxxxxxxx
> =  Enamoradamente Casado
> ===============
> = Acuerdos Toltecas:
> = * Hacer siempre y en todo asunto nuestro mejor
> = esfuerzo,
> = * Ser impecable con la palabra
> = * No suponer
> = * No tomarse nada a título personal
> ==============
>
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/