forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 8:13 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Cholesky decomposition with semi-positive definite matrices
PostPosted: Mon Aug 02, 2010 10:42 am 
Offline

Joined: Mon Aug 02, 2010 10:15 am
Posts: 2
Hello,

I am using the c++ alglib 2.6 to calculate the cholesky decomposition and call the hpdmatrixcholesky-function which always returns false on a spd(semi positive definte) matrix. (like 4x4 all filled with 1)

Now I read in the header that the library returns false on not positive finite matrices. But my math understanding (and wikipedia ^^) tells me you only need spd matrices. Is this only a wrong formulation is the header or is this a bug and cholesky does not work with spd-matrices?

Greetz
Ricardo


Top
 Profile  
 
 Post subject: Re: Cholesky decomposition with semi-positive definite matri
PostPosted: Tue Aug 03, 2010 9:32 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
It work with strictly positive definite matrices only. Semidefinite matrices are not supported.

Can you explain in more details what is wrong with header? I don't get it :) it talks about positive definite matrices; it is well known that Cholesky decomposition is stable only for strictly positive definite matrices.


Top
 Profile  
 
 Post subject: Re: Cholesky decomposition with semi-positive definite matri
PostPosted: Wed Aug 04, 2010 8:36 am 
Offline

Joined: Mon Aug 02, 2010 10:15 am
Posts: 2
Ah sorry you are right of course. I just remembered that you can use the cholesky decomposition for semi-positive definite matrices, but I forgot that there is no stable computation for those.

The explanation in the header is correct in that case, too. So I think this thread can be closed.

Thx for your time :)

Ricardo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group