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