xref: /aosp_15_r20/external/eigen/doc/snippets/SelfAdjointEigenSolver_eigenvalues.cpp (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin Li MatrixXd ones = MatrixXd::Ones(3,3);
2*bf2c3715SXin Li SelfAdjointEigenSolver<MatrixXd> es(ones);
3*bf2c3715SXin Li cout << "The eigenvalues of the 3x3 matrix of ones are:"
4*bf2c3715SXin Li      << endl << es.eigenvalues() << endl;
5