TutorialLinAlgRankRevealing.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 TutorialLinAlgRankRevealing.cpp.

5 {
7  A << 1, 2, 5,
8  2, 1, 4,
9  3, 0, 3;
10  std::cout << "Here is the matrix A:\n" << A << std::endl;
12  std::cout << "The rank of A is " << lu_decomp.rank() << std::endl;
13  std::cout << "Here is a matrix whose columns form a basis of the null-space of A:\n"
14  << lu_decomp.kernel() << std::endl;
15  std::cout << "Here is a matrix whose columns form a basis of the column-space of A:\n"
16  << lu_decomp.image(A) << std::endl; // yes, have to pass the original A
17 }
MatrixXcf A
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