blob: 0cc331d9f93fe0766fecd334142b9ce034923e6b [file] [log] [blame]
Gael Guennebaud16c7b1d2009-09-03 11:17:16 +02001Matrix2f m = Matrix2f::Random();
2m = (m + m.adjoint()).eval();
Benoit Jacobe259f712010-10-19 21:56:26 -04003JacobiRotation<float> J;
Gael Guennebaud16c7b1d2009-09-03 11:17:16 +02004J.makeJacobi(m, 0, 1);
5cout << "Here is the matrix m:" << endl << m << endl;
6m.applyOnTheLeft(0, 1, J.adjoint());
7m.applyOnTheRight(0, 1, J);
8cout << "Here is the matrix J' * m * J:" << endl << m << endl;