Sign in
third-party-mirror
/
eigen
/
45874d87377474c35f39757c4299877efcc45bf7
/
.
/
doc
/
snippets
/
Jacobi_makeGivens.cpp
blob: 4b733c3064a6fbcbd2d6ec9cd63d20db1f04b880 [
file
] [
log
] [
blame
]
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
;