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