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