Go to the source code of this file.
◆ main()
Definition at line 4 of file TutorialLinAlgSelfAdjointEigenSolver.cpp.
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"
14 << eigensolver.eigenvectors() << std::endl;
The matrix class, also used for vectors and row-vectors.
Computes eigenvalues and eigenvectors of selfadjoint matrices.