blob: a86e80a6297305c8256c968876be579d52990eb3 [file] [log] [blame]
Brian Silverman72890c22015-09-19 14:37:37 -04001Matrix2f m = Matrix2f::Random();
2m = (m + m.adjoint()).eval();
3JacobiRotation<float> J;
4J.makeJacobi(m, 0, 1);
5cout << "Here is the matrix m:" << endl << m << endl;
6m.applyOnTheLeft(0, 1, J.adjoint());
7m.applyOnTheRight(0, 1, J);
Austin Schuhc55b0172022-02-20 17:52:35 -08008cout << "Here is the matrix J' * m * J:" << endl << m << endl;