Sign in
eigen
/
mirror
/
152f3218ac9b6941cf6dbc960c2d4a6d1099eb06
/
.
/
doc
/
snippets
/
SelfAdjointEigenSolver_eigenvectors.cpp
blob: cfc8b0d54b73ea7984211b7e7238ddc575a4e840 [
file
] [
log
] [
blame
]
MatrixXd
ones
=
MatrixXd
::
Ones
(
3
,
3
);
SelfAdjointEigenSolver
<
MatrixXd
>
es
(
ones
);
cout
<<
"The first eigenvector of the 3x3 matrix of ones is:"
<<
endl
<<
es
.
eigenvectors
().
col
(
1
)
<<
endl
;