2 A << 4,-1,2, -1,6,0, 2,0,5;
3 cout <<
"The matrix A is" << endl <<
A << endl;
9 cout <<
"The Cholesky factor L is" << endl <<
L << endl;
10 cout <<
"To check this, let us compute L * L.transpose()" << endl;
11 cout <<
L *
L.transpose() << endl;
12 cout <<
"This should equal the matrix A" << endl;
A<< 4,-1, 2, -1, 6, 0, 2, 0, 5;cout<< "The matrix A is"<< endl<< A<< endl;LLT< MatrixXd > lltOfA(A)
Matrix< double, Dynamic, Dynamic > MatrixXd
Dynamic×Dynamic matrix of type double.