mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -1,9 +1,9 @@
|
||||
MatrixXd A(3,3);
|
||||
A << 4,-1,2, -1,6,0, 2,0,5;
|
||||
MatrixXd A(3, 3);
|
||||
A << 4, -1, 2, -1, 6, 0, 2, 0, 5;
|
||||
cout << "The matrix A is" << endl << A << endl;
|
||||
|
||||
LLT<MatrixXd> lltOfA(A); // compute the Cholesky decomposition of A
|
||||
MatrixXd L = lltOfA.matrixL(); // retrieve factor L in the decomposition
|
||||
LLT<MatrixXd> lltOfA(A); // compute the Cholesky decomposition of A
|
||||
MatrixXd L = lltOfA.matrixL(); // retrieve factor L in the decomposition
|
||||
// The previous two lines can also be written as "L = A.llt().matrixL()"
|
||||
|
||||
cout << "The Cholesky factor L is" << endl << L << endl;
|
||||
|
||||
Reference in New Issue
Block a user