You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
235 B

  1. Vector2f v = Vector2f::Random();
  2. JacobiRotation<float> G;
  3. G.makeGivens(v.x(), v.y());
  4. cout << "Here is the vector v:" << endl << v << endl;
  5. v.applyOnTheLeft(0, 1, G.adjoint());
  6. cout << "Here is the vector J' * v:" << endl << v << endl;