Tutorial_PartialLU_solve.cpp File Reference
#include <Eigen/Core>
#include <Eigen/LU>
#include <iostream>

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
5  {
6  Eigen::Matrix3f A;
7  Eigen::Vector3f b;
8  A << 1, 2, 3, 4, 5, 6, 7, 8, 10;
9  b << 3, 3, 4;
10  std::cout << "Here is the matrix A:" << std::endl << A << std::endl;
11  std::cout << "Here is the vector b:" << std::endl << b << std::endl;
12  Eigen::Vector3f x = A.lu().solve(b);
13  std::cout << "The solution is:" << std::endl << x << std::endl;
14 }
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.