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