Re: [eigen] Positive Definitenes? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Positive Definitenes?
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 2 Mar 2010 12:12:54 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=DkNfludCKCqjeNi23drWh37gsjxYjtf2Z4KGUfR6DMs=; b=nizsLskGf6azJSs39l5wwHRPiTZ6euD65RKRe8WyAyWj9hqCiw2Vals85onuD6TnhH 3duYpkcHb3J6bntQdF9YNfSxNqlUxaP7M10ViTOlWyqwmm/AK35CT1oZHfIxX9JXMW1M EySOIIBC6+vqxYcCjmE24TZtTO2YgCsqV1DS8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ukJ8upsW5YxneRHQOa9vmukzs5cBF/2fTvuIxWnVLRroJ2KtIenTmexnyxLY0lL00y 5ilnemw3Gbo553qMJ717hjRtAALStGHuVdwA5NcbvAvKP6y5rJVPdsyLlhuSipgDtztJ cv/7qtWN/mK3ROnIEIV8hetB5OqVTIGUf4VRI=
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
> ==============
>
>
>
>