Sign in
third-party-mirror
/
eigen
/
9dfc0afdf1dbe8217c8421c061834d195ae40fae
/
.
/
doc
/
snippets
/
EigenSolver_eigenvectors.cpp
blob: 6d4606dc0b283c809c4df0ac954b5d8c43e29897 [
file
] [
log
] [
blame
]
MatrixXd
ones
=
MatrixXd
::
Ones
(
3
,
3
);
EigenSolver
<
MatrixXd
>
es
(
ones
);
cout
<<
"The first eigenvector of the 3x3 matrix of ones is:"
<<
endl
<<
es
.
eigenvectors
().
col
(
0
)
<<
endl
;