Tus comentarios
Yes, your matrix is Hermitian, of course.
But in my example matrix was not Hermitian. Yet MATLAB/zpotrf was not able to recognize this right away and returned p=3, indicating that A(2,2) minor is HPD! Which is not true (matrix A is not even Hermitian!).
Moreover returned R gives:
That was my whole point. I still think correct result should be R=[], p=1, meaning A has no HPD minors :).
What do you think?
(I have traced this behavior down to zpotrf).
But in my example matrix was not Hermitian. Yet MATLAB/zpotrf was not able to recognize this right away and returned p=3, indicating that A(2,2) minor is HPD! Which is not true (matrix A is not even Hermitian!).
Moreover returned R gives:
>> norm(R'*R-A(1:p-1,1:p-1),1) ans = 2.8084Which contradicts the documentation: When A is full, R is an upper triangular matrix of order q=p-1 such that R'*R=A(1:q,1:q).
That was my whole point. I still think correct result should be R=[], p=1, meaning A has no HPD minors :).
What do you think?
(I have traced this behavior down to zpotrf).
New version has been released, please download it from our website.
Just completed adding the feature - not building the release.
Here is some example you might find funny (this is pure MATLAB):
Correct result should be R = [], p =1. Or am I missing something?
Here is some example you might find funny (this is pure MATLAB):
>> A = 100 + 0i -1.0151 + 1.4042i -0.12828 + 0.94526i -1.0151 + 1.4042i 100 + 0i -0.15982 + 1.622i -0.12828 + 0.94526i -0.15982 + 1.622i -0.12722 + 0.70364i >> [R,p] = chol(A) R = 10 + 0i -0.10151 + 0.14042i 0 + 0i 9.9985 + 0i p = 3 >> norm(R'*R-A(1:p-1,1:p-1),1) ans = 2.8084Matrix A has no positive definite minors, but real positive diagonal tricked MATLAB and it generates unexpected result.
Correct result should be R = [], p =1. Or am I missing something?
Yes, up to this moment we supported only the following syntax:
***
I have been focusing on covering the MATLAB functionality in breadth, e.g. main functions in prime syntax.
I am always open and happy to do any refinements requested by users.
I believe this user-driven style of development naturally shapes the toolbox functionality, and get audience in different fields.
Besides, that way I am able to actually get some work done:), as some of the functions might take months/years to implement in all possible variations.
I hope for understanding and I am always welcome any requests. Please continue sending your excellent bug reports, comments and suggestions. It is highly appreciated!
***
I plan to release the updated "chol" today or tomorrow the latest....
R = chol(A) L = chol(A,'lower') R = chol(A,'upper')I understand that the two-outputs version is important and it will be ready shortly :).
***
I have been focusing on covering the MATLAB functionality in breadth, e.g. main functions in prime syntax.
I am always open and happy to do any refinements requested by users.
I believe this user-driven style of development naturally shapes the toolbox functionality, and get audience in different fields.
Besides, that way I am able to actually get some work done:), as some of the functions might take months/years to implement in all possible variations.
I hope for understanding and I am always welcome any requests. Please continue sending your excellent bug reports, comments and suggestions. It is highly appreciated!
***
I plan to release the updated "chol" today or tomorrow the latest....
I have just added that option to LU function (it wasn't implemented before). Please use newest toolbox.
Fixed version has been released. Please update your installation.
Discount is sent to your mail. Thank you, John Doe :)!
Servicio de atención al cliente por UserEcho
This clears things out. Thank you!
(I used documentation for 2011a, which has a less strict wording - source of my confusion).