Sign in
third-party-mirror
/
eigen
/
ba5b3a35527a05ec22b0e96dbb9860072771a6a8
/
.
/
doc
/
snippets
/
EigenSolver_eigenvalues.cpp
blob: ed28869a08d340edb8dd558b92c9cc466600fb96 [
file
] [
log
] [
blame
]
MatrixXd
ones
=
MatrixXd
::
Ones
(
3
,
3
);
EigenSolver
<
MatrixXd
>
es
(
ones
,
false
);
cout
<<
"The eigenvalues of the 3x3 matrix of ones are:"
<<
endl
<<
es
.
eigenvalues
()
<<
endl
;