#include #include using namespace std; using namespace StormEigen; int main() { Matrix2d A; A << 2, 1, 2, 0.9999999999; FullPivLU lu(A); cout << "By default, the rank of A is found to be " << lu.rank() << endl; lu.setThreshold(1e-5); cout << "With threshold 1e-5, the rank of A is found to be " << lu.rank() << endl; }