Sign in
third-party-mirror
/
eigen
/
fuchsia
/
2fe90a629a7acbdeb4538e54ee8eea128827f3ac
/
.
/
doc
/
snippets
/
MatrixBase_diagonal.cpp
blob: cd63413f37f71b837bccda5508882cc2beefae83 [
file
] [
log
] [
blame
]
Matrix3i
m
=
Matrix3i
::
Random
();
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"Here are the coefficients on the main diagonal of m:"
<<
endl
<<
m
.
diagonal
()
<<
endl
;