Eigen 3.4.90
doc
snippets
Jacobi_makeGivens.cpp
Go to the documentation of this file.
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;
v
Vector2f v
Definition:
Jacobi_makeGivens.cpp:1
G
JacobiRotation< float > G
Definition:
Jacobi_makeGivens.cpp:2
Eigen::Vector2f
Matrix< float, 2, 1 > Vector2f
2×1 vector of type float.
Definition:
Matrix.h:501