This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Decomposition with llt

Tags: None
(comma "," separated)
helga
Registered Member
Posts
1
Karma
0

Decomposition with llt

Fri Sep 02, 2011 10:43 am
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
jitseniesen
Registered Member
Posts
204
Karma
2

Re: Decomposition with llt

Fri Sep 02, 2011 11:48 am
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.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]