Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
c55b0172b26fcf0a0b8d5ef0b98c87128e0f6bdb
/
.
/
doc
/
snippets
/
SelfAdjointView_eigenvalues.cpp
blob: be198677840c786158f76e010c85b25cdd6ba81f [
file
] [
log
] [
blame
]
MatrixXd
ones
=
MatrixXd
::
Ones
(
3
,
3
);
VectorXd
eivals
=
ones
.
selfadjointView
<
Lower
>().
eigenvalues
();
cout
<<
"The eigenvalues of the 3x3 matrix of ones are:"
<<
endl
<<
eivals
<<
endl
;