TutorialLinAlgSetThreshold.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 4 of file TutorialLinAlgSetThreshold.cpp.

5 {
7  A << 2, 1,
8  2, 0.9999999999;
10  std::cout << "By default, the rank of A is found to be " << lu.rank() << std::endl;
11  lu.setThreshold(1e-5);
12  std::cout << "With threshold 1e-5, the rank of A is found to be " << lu.rank() << std::endl;
13 }
MatrixXcf A
Array< double, 1, 3 > e(1./3., 0.5, 2.)
LU decomposition of a matrix with complete pivoting, and related features.
Definition: FullPivLU.h:64
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182
cout<< "Here is the matrix m:"<< endl<< m<< endl;Eigen::FullPivLU< Matrix5x3 > lu(m)