EigenSolver_compute.cpp
Go to the documentation of this file.
00001 EigenSolver<MatrixXf> es;
00002 MatrixXf A = MatrixXf::Random(4,4);
00003 es.compute(A, /* computeEigenvectors = */ false);
00004 cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl;
00005 es.compute(A + MatrixXf::Identity(4,4), false); // re-use es to compute eigenvalues of A+I
00006 cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl;


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:31:07