Sign in
eigen
/
mirror
/
b0b9b4d6b223cfbfee564427514cd6d693e1c503
/
.
/
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
;