Sign in
eigen
/
mirror
/
63185be8b240ee1a9ef476af2fc06676d3d89fe0
/
.
/
doc
/
snippets
/
MatrixBase_eigenvalues.cpp
blob: 039f887018ae9e2da08ad590cdbc68dce1b8f7ce [
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
;