Sign in
third-party-mirror
/
eigen
/
2201fb98dc9e6f2f32faea749f3dc71ec7ecc2c2
/
.
/
doc
/
snippets
/
SelfAdjointView_eigenvalues.cpp
blob: be198677840c786158f76e010c85b25cdd6ba81f [
file
]
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
;