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

Functions

int main ()
 

Function Documentation

◆ main()

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