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

Functions

int main ()
 

Function Documentation

◆ main()

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

References Eigen::FullPivLU< MatrixType_, PermutationIndex_ >::image(), Eigen::FullPivLU< MatrixType_, PermutationIndex_ >::kernel(), and Eigen::FullPivLU< MatrixType_, PermutationIndex_ >::rank().