repo.or.cz
/
librepilot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git]
/
ground
/
gcs
/
src
/
libs
/
eigen
/
doc
/
snippets
/
MatrixBase_diagonal.cpp
blob
cd63413f37f71b837bccda5508882cc2beefae83
1
Matrix3i m
=
Matrix3i
::
Random
();
2
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
3
cout
<<
"Here are the coefficients on the main diagonal of m:"
<<
endl
4
<<
m
.
diagonal
() <<
endl
;