template<typename t_Scalar>
class qpmad::GivensRotation< t_Scalar >
Represents Givens rotation.
[ cos, sin ] [ ] [ -sin, cos ]
for a given vector (a, b) is defined with
[ cos, sin ] [ a ] [ d ] [ ] * [ ] = [ ] [ -sin, cos ] [ b ] [ 0 ]
sin^2 + cos^2 = 1
Special cases: COPY b == 0: cos = 1, sin = 0 SWAP (b != 0) && (a == 0): cos = 0, sin = 1
Definition at line 38 of file givens.h.
|
Type | computeAndApply (t_Scalar &a, t_Scalar &b, const t_Scalar eps) |
|
void | apply (t_Scalar &a, t_Scalar &b) const |
|
template<class t_MatrixType > |
void | applyColumnWise (t_MatrixType &M, const int start, const int end, const int column_1, const int column_2) const |
|
template<class t_MatrixType > |
void | applyRowWise (t_MatrixType &M, const int start, const int end, const int row_1, const int row_2) const |
|