Sign in
eigen
/
mirror
/
0e85a677e36956f13a3d85047d088d773b39b69b
/
.
/
doc
/
snippets
/
Jacobi_makeGivens.cpp
blob: 4b733c3064a6fbcbd2d6ec9cd63d20db1f04b880 [
file
]
Vector2f
v
=
Vector2f
::
Random
();
JacobiRotation
<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
;