Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
189376f1eb10ecaca8a0b1ea00eba0e6f995da27
/
.
/
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
;