Sign in
eigen
/
mirror
/
326ea773908c2d7e46101085af8f72d20b3f8cbc
/
.
/
doc
/
snippets
/
MatrixBase_isZero.cpp
blob: c2cfe2201240d96a88bc2baa71880b8c68f13ee9 [
file
]
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
;