Sign in
eigen
/
mirror
/
b69b6a9db20b5cbd3a3268ba8727f8125d6077b1
/
.
/
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
;