8 std::cout <<
"Here is the matrix A:\n" <<
A << std::endl;
11 std::cout <<
"The eigenvalues of A are:\n" << eigensolver.
eigenvalues() << std::endl;
12 std::cout <<
"Here's a matrix whose columns are eigenvectors of A \n"
13 <<
"corresponding to these eigenvalues:\n"
The matrix class, also used for vectors and row-vectors.
Computes eigenvalues and eigenvectors of selfadjoint matrices.
ComputationInfo info() const
Reports whether previous computation was successful.
const EigenvectorsType & eigenvectors() const
Returns the eigenvectors of given matrix.
const RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.