SelfAdjointEigenSolver_SelfAdjointEigenSolver.cpp
Go to the documentation of this file.
1 SelfAdjointEigenSolver<Matrix4f> es;
2 Matrix4f X = Matrix4f::Random(4,4);
3 Matrix4f A = X + X.transpose();
4 es.compute(A);
5 cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl;
6 es.compute(A + Matrix4f::Identity(4,4)); // re-use es to compute eigenvalues of A+I
7 cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl;
es
SelfAdjointEigenSolver< Matrix4f > es
Definition: SelfAdjointEigenSolver_SelfAdjointEigenSolver.cpp:1
X
Matrix4f X
Definition: SelfAdjointEigenSolver_SelfAdjointEigenSolver.cpp:2
A
Definition: test_numpy_dtypes.cpp:298


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:03