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