#include <iostream>
#include <Eigen/Dense>
◆ main()
9 std::cout <<
"Here is the matrix A:\n" <<
A << std::endl;
10 std::cout <<
"Here is the right hand side b:\n" <<
b << std::endl;
11 std::cout <<
"Computing LLT decomposition..." << std::endl;
13 std::cout <<
"The solution is:\n" <<
llt.solve(
b) << std::endl;
15 std::cout <<
"The matrix A is now:\n" <<
A << std::endl;
16 std::cout <<
"Computing LLT decomposition..." << std::endl;
18 std::cout <<
"The solution is now:\n" <<
llt.solve(
b) << std::endl;
Scalar * b
Definition: benchVecAdd.cpp:17
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
Standard Cholesky decomposition (LL^T) of a matrix and associated features.
Definition: LLT.h:70
EIGEN_DONT_INLINE void llt(const Mat &A, const Mat &B, Mat &C)
Definition: llt.cpp:4
References b, and llt().