Sign in
third-party-mirror
/
eigen
/
6a5543807f8f60894a55986260942f4969cd7c29
/
.
/
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
;