libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
10 lines
318 B
C++
10 lines
318 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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;
|