#include #include using namespace Eigen; using namespace std; int main(int, char**) { cout.precision(3); Vector2f v = Vector2f::Random(); JacobiRotation 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; return 0; }