Sign in
third-party-mirror
/
eigen
/
2a10258d45ce0d23630971b7050643d0828d10de
/
.
/
doc
/
snippets
/
MatrixBase_isZero.cpp
blob: c2cfe2201240d96a88bc2baa71880b8c68f13ee9 [
file
] [
log
] [
blame
]
Matrix3d
m
=
Matrix3d
::
Zero
();
m
(
0
,
2
)
=
1e-4
;
cout
<<
"Here's the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"m.isZero() returns: "
<<
m
.
isZero
()
<<
endl
;
cout
<<
"m.isZero(1e-3) returns: "
<<
m
.
isZero
(
1e-3
)
<<
endl
;