TutorialLinAlgExSolveLDLT.cpp File Reference
#include <iostream>
#include <Eigen/Dense>

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
4  {
5  Eigen::Matrix2f A, b;
6  A << 2, -1, -1, 3;
7  b << 1, 2, 3, 1;
8  std::cout << "Here is the matrix A:\n" << A << std::endl;
9  std::cout << "Here is the right hand side b:\n" << b << std::endl;
10  Eigen::Matrix2f x = A.ldlt().solve(b);
11  std::cout << "The solution is:\n" << x << std::endl;
12 }
Scalar * b
Definition: benchVecAdd.cpp:17
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
list x
Definition: plotDoE.py:28

References b, and plotDoE::x.