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