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