source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/GeneralizedEigenSolver.cpp@ 140

Last change on this file since 140 was 136, checked in by ldecherf, 8 years ago

Doc

File size: 456 bytes
Line 
1GeneralizedEigenSolver<MatrixXf> ges;
2MatrixXf A = MatrixXf::Random(4,4);
3MatrixXf B = MatrixXf::Random(4,4);
4ges.compute(A, B);
5cout << "The (complex) numerators of the generalzied eigenvalues are: " << ges.alphas().transpose() << endl;
6cout << "The (real) denominatore of the generalzied eigenvalues are: " << ges.betas().transpose() << endl;
7cout << "The (complex) generalzied eigenvalues are (alphas./beta): " << ges.eigenvalues().transpose() << endl;
Note: See TracBrowser for help on using the repository browser.