View unanswered posts | View active topics
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.
|
Page 1 of 1
|
[ 3 posts ] |
|
Author |
Message |
hayt
|
Post subject: Cholesky decomposition with semi-positive definite matrices Posted: Mon Aug 02, 2010 10:42 am |
|
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 |
|
|
Sergey.Bochkanov
|
Post subject: Re: Cholesky decomposition with semi-positive definite matri Posted: Tue Aug 03, 2010 9:32 pm |
|
|
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 |
|
|
hayt
|
Post subject: Re: Cholesky decomposition with semi-positive definite matri Posted: Wed Aug 04, 2010 8:36 am |
|
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 |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
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
|