Sign in
third-party-mirror
/
eigen
/
440a71a78fb63be4f4e46dbf757a49ccf87c2aab
/
.
/
doc
/
snippets
/
MatrixBase_eigenvalues.cpp
blob: 010f45dcdef504e443e504af7a78869171a99db7 [
file
] [
log
] [
blame
]
MatrixXd
ones
=
MatrixXd
::
Ones
(
3
,
3
);
VectorXcd
eivals
=
ones
.
eigenvalues
();
cout
<<
"The eigenvalues of the 3x3 matrix of ones are:"
<<
endl
<<
eivals
<<
endl
;