Sign in
third-party-mirror
/
eigen
/
941ca8d83f776b9a07153d3abef2877907aa0555
/
.
/
doc
/
snippets
/
MatrixBase_isIdentity.cpp
blob: ea535c786d6fcffdb63cf34400ac2552d68bb75e [
file
] [
log
] [
blame
]
Matrix3d
m
=
Matrix3d
::
Identity
();
m
(
0
,
2
)
=
1e-4
;
cout
<<
"Here's the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"m.isIdentity() returns: "
<<
m
.
isIdentity
()
<<
endl
;
cout
<<
"m.isIdentity(1e-3) returns: "
<<
m
.
isIdentity
(
1e-3
)
<<
endl
;