Go to the source code of this file.
◆ main()
Definition at line 4 of file TutorialLinAlgComputeTwice.cpp.
10 std::cout <<
"Here is the matrix A:\n" <<
A << std::endl;
11 std::cout <<
"Here is the right hand side b:\n" <<
b << std::endl;
12 std::cout <<
"Computing LLT decomposition..." << std::endl;
14 std::cout <<
"The solution is:\n" << llt.
solve(
b) << std::endl;
16 std::cout <<
"The matrix A is now:\n" <<
A << std::endl;
17 std::cout <<
"Computing LLT decomposition..." << std::endl;
19 std::cout <<
"The solution is now:\n" << llt.
solve(
b) << std::endl;
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
LLT & compute(const EigenBase< InputType > &matrix)
const Solve< LLT, Rhs > solve(const MatrixBase< Rhs > &b) const
The matrix class, also used for vectors and row-vectors.