gtsam
3rdparty
Eigen
doc
snippets
MatrixBase_isDiagonal.cpp
Go to the documentation of this file.
1
Matrix3d
m
= 10000 * Matrix3d::Identity();
2
m
(0,2) = 1;
3
cout <<
"Here's the matrix m:"
<< endl <<
m
<< endl;
4
cout <<
"m.isDiagonal() returns: "
<<
m
.isDiagonal() << endl;
5
cout <<
"m.isDiagonal(1e-3) returns: "
<<
m
.isDiagonal(1
e
-3) << endl;
6
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
m
Matrix3d m
Definition:
MatrixBase_isDiagonal.cpp:1
gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:51