1 SelfAdjointEigenSolver<MatrixXf>
es(4);
5 cout <<
"The eigenvalues of A are: " <<
es.eigenvalues().transpose() << endl;
6 es.compute(
A + MatrixXf::Identity(4,4));
7 cout <<
"The eigenvalues of A+I are: " <<
es.eigenvalues().transpose() << endl;
SelfAdjointEigenSolver< MatrixXf > es(4)
Matrix< float, Dynamic, Dynamic > MatrixXf
Dynamic×Dynamic matrix of type float.