LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / EigenSolver_compute.cpp
bloba5c96e9b46b406541715f2367c4f014c4fe2d929
1 EigenSolver<MatrixXf> es;
2 MatrixXf A = MatrixXf::Random(4,4);
3 es.compute(A, /* computeEigenvectors = */ false);
4 cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl;
5 es.compute(A + MatrixXf::Identity(4,4), false); // re-use es to compute eigenvalues of A+I
6 cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl;