blob: a86e80a6297305c8256c968876be579d52990eb3 [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);
Aaron Franke5c22c7a2020-03-21 21:30:06 -04008cout << "Here is the matrix J' * m * J:" << endl << m << endl;