11 cout <<
"Here is the matrix A:\n" << A << endl;
14 cout <<
"The eigenvalues of A are:\n" << eigensolver.
eigenvalues() << endl;
15 cout <<
"Here's a matrix whose columns are eigenvectors of A \n" 16 <<
"corresponding to these eigenvalues:\n" Computes eigenvalues and eigenvectors of selfadjoint matrices.
Namespace containing all symbols from the Eigen library.
void eigensolver(const MatrixType &m)
EIGEN_DEVICE_FUNC ComputationInfo info() const
Reports whether previous computation was successful.
EIGEN_DEVICE_FUNC const RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.
EIGEN_DEVICE_FUNC const EigenvectorsType & eigenvectors() const
Returns the eigenvectors of given matrix.