Sign in
third-party-mirror
/
eigen
/
45874d87377474c35f39757c4299877efcc45bf7
/
.
/
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
;