Registered Member
|
I have a positive definite matrix that I want to decompose by Cholesky decompisition. (B=A*A^t) I want to find A and I want to use A later in my program. I also want to be able to print A to screen.
Matrix2f B; B << 1,1,0,1; Matrix2f A=testMatrix.llt(); This dosn't work, because the function do not return the actual matrix I also tried: const LLT<Matrix2f> test = testmatrise.llt(); But this didn't work either. How can I get A as a Matrix2f that I can use in further calculations |
Registered Member
|
testmatrix.llt() returns an object of type LLT<Matrix2f> representing the LLT decomposition. To get the matrix, you should write testmatrix.llt().matrixL() . See http://eigen.tuxfamily.org/dox-devel/cl ... _1LLT.html for the list of method you can call on an LLT<...> object.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]