TutorialLinAlgSelfAdjointEigenSolver.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 4 of file TutorialLinAlgSelfAdjointEigenSolver.cpp.

5 {
7  A << 1, 2, 2, 3;
8  std::cout << "Here is the matrix A:\n" << A << std::endl;
10  if (eigensolver.info() != Eigen::Success) abort();
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;
15 }
MatrixXcf A
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182
Computes eigenvalues and eigenvectors of selfadjoint matrices.
@ Success
Definition: Constants.h:446