eigen/doc/snippets/ComplexEigenSolver_eigenvalues.cpp

5 lines
181 B
C++
Raw Normal View History

MatrixXcf ones = MatrixXcf::Ones(3,3);
ComplexEigenSolver<MatrixXcf> ces(ones);
cout << "The eigenvalues of the 3x3 matrix of ones are:"
<< endl << ces.eigenvalues() << endl;