Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
examples
TutorialLinAlgSetThreshold.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include <Eigen/Dense>
3
4
using namespace
std
;
5
using namespace
Eigen
;
6
7
int
main
()
8
{
9
Matrix2d
A
;
10
A << 2, 1,
11
2, 0.9999999999;
12
FullPivLU<Matrix2d>
lu
(A);
13
cout <<
"By default, the rank of A is found to be "
<< lu.
rank
() << endl;
14
lu.
setThreshold
(1
e
-5);
15
cout <<
"With threshold 1e-5, the rank of A is found to be "
<< lu.
rank
() << endl;
16
}
Eigen::FullPivLU::setThreshold
FullPivLU & setThreshold(const RealScalar &threshold)
Definition:
FullPivLU.h:292
main
int main()
Definition:
TutorialLinAlgSetThreshold.cpp:7
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
std
Definition:
Half.h:150
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
lu
cout<< "Here is the matrix m:"<< endl<< m<< endl;Eigen::FullPivLU< Matrix5x3 > lu(m)
A
Definition:
test_numpy_dtypes.cpp:254
Eigen::FullPivLU
LU decomposition of a matrix with complete pivoting, and related features.
Definition:
ForwardDeclarations.h:249
Eigen::FullPivLU::rank
Index rank() const
Definition:
FullPivLU.h:332
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19