Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
72890c2da170577883e6431bd92d612716a31b85
/
.
/
doc
/
snippets
/
MatrixBase_isDiagonal.cpp
blob: 5b1d59977658d19981c171602ace45b7e9829c1f [
file
] [
log
] [
blame
]
Matrix3d
m
=
10000
*
Matrix3d
::
Identity
();
m
(
0
,
2
)
=
1
;
cout
<<
"Here's the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"m.isDiagonal() returns: "
<<
m
.
isDiagonal
()
<<
endl
;
cout
<<
"m.isDiagonal(1e-3) returns: "
<<
m
.
isDiagonal
(
1e-3
)
<<
endl
;