I am a bit perplexed by the design choice of plyapc computing the upper triangular fractor U of the solution X = U U'.
Cholesky factorization typically computes the lower triangular factor L of matrix A such that A = L L'. The lyapchol function in matlab, which is according to the documentation uses the SLICOT SB03OD routine, computes the upper triangular factor U, where X = U' U. I am not sure if the function is just a wrapper or a re-implementation but I assume the original SLICOT routine also uses the same factorization of the result. The factorization is then of course consistent with the typical Cholesky factorization as L = U'.
So far I haven't run into any issues with this, but plyapc is definitely the odd man out. Additionally if plyapc used the typical U' U' or L L', it could directly return a Cholesky type as a result.
I am a bit perplexed by the design choice of
plyapccomputing the upper triangular fractorUof the solutionX = U U'.Cholesky factorization typically computes the lower triangular factor
Lof matrixAsuch thatA = L L'. Thelyapcholfunction in matlab, which is according to the documentation uses the SLICOTSB03ODroutine, computes the upper triangular factorU, whereX = U' U. I am not sure if the function is just a wrapper or a re-implementation but I assume the original SLICOT routine also uses the same factorization of the result. The factorization is then of course consistent with the typical Cholesky factorization asL = U'.So far I haven't run into any issues with this, but
plyapcis definitely the odd man out. Additionally ifplyapcused the typicalU' U'orL L', it could directly return aCholeskytype as a result.