In apply_givens.cc:
const int N = 5;
double dx[] = { 1, 2, 3, 4, 5 };
double dy[] = { 2, 4, 8, 16, 32};
Vec x(dx, N), y(dy, N);
double a = x[N-1];
double b = y[N-1];
givens_rotation<double> rot(a, b);
rot.apply(x, y);
|
Member
|
Where defined
|
Description
|
givens_rotation ()
|
|
Default constructor
|
givens_rotation (T a_in, T b_in)
|
|
Givens Plane Rotation Constructor
|
void
set_cs (T cin, T sin)
|
|
|
void
scalar_apply (T& x, T& y)
|
|
Apply plane rotation to two real scalars. (name change a VC workaround)
|
template <class VecX, class VecY> void
apply (VecX& x, VecY& y)
|
|
Apply plane rotation to two vectors.
|
T
b ()
|
|
|
T
s ()
|
|
|
|