Gitiles
Code Review
Sign In
gerrit.openfyde.cn
/
chromium.googlesource.com
/
external
/
gitlab.com
/
libeigen
/
eigen
/
8ce341caf2947e4b5ac4580c20254ae7d828b009
/
.
/
doc
/
snippets
/
Jacobi_makeGivens.cpp
blob: 6f8ec054aed538cc2939ce74fd246370fa1c0111 [
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
;