add examples for makeJacobi and makeGivens

This commit is contained in:
Gael Guennebaud
2009-09-03 11:17:16 +02:00
parent c893917d65
commit 16c7b1daab
6 changed files with 49 additions and 12 deletions

View File

@@ -0,0 +1,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;