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

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
4  {
5  Eigen::Matrix2d A;
6  A << 2, 1, 2, 0.9999999999;
8  std::cout << "By default, the rank of A is found to be " << lu.rank() << std::endl;
9  lu.setThreshold(1e-5);
10  std::cout << "With threshold 1e-5, the rank of A is found to be " << lu.rank() << std::endl;
11 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
LU decomposition of a matrix with complete pivoting, and related features.
Definition: FullPivLU.h:63
cout<< "Here is the matrix m:"<< endl<< m<< endl;Eigen::FullPivLU< Matrix5x3 > lu(m)

References e(), and lu().