Sign in
third-party-mirror
/
eigen
/
440a71a78fb63be4f4e46dbf757a49ccf87c2aab
/
.
/
doc
/
snippets
/
MatrixBase_isDiagonal.cpp
blob: 290654fdf303b47cb77499b5a5b5d97b4c22dc88 [
file
] [
log
] [
blame
]
Matrix3d
m
=
10000
*
Matrix3d
::
Identity
();
m
(
0
,
2
)
=
1
;
cout
<<
"Here's the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"m.isDiagonal() returns: "
<<
m
.
isDiagonal
()
<<
endl
;
cout
<<
"m.isDiagonal(1e-3) returns: "
<<
m
.
isDiagonal
(
1e-3
)
<<
endl
;