aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/Jacobi_makeGivens.cpp
blob: 3a4defe2467fce2e514ee8ef6220567defca76c8 (plain)
1
2
3
4
5
6
Vector2f v = Vector2f::Random();
PlanarRotation<float> G;
G.makeGivens(v.x(), v.y());
cout << "Here is the vector v:" << endl << v << endl;
v.applyOnTheLeft(0, 1, G.adjoint());
cout << "Here is the vector J' * v:" << endl << v << endl;