#include <givens_rotation.h>
Public Types | |
typedef T | value_type |
The type of the elements used for constructing the transformation. also have the same type. | |
Public Member Functions | |
givens_rotation (value_type &x, value_type &y) | |
An object constructor. | |
template<class U > | |
void | apply (U &x, U &y) const |
Transformation operaton. | |
template<class M > | |
void | apply (matrix_row< M > x, matrix_row< M > y) const |
template<class M > | |
void | apply (matrix_column< M > x, matrix_column< M > y) const |
const value_type | c () const |
const value_type | s () const |
Givens 2d-rotation is a transformation defined as
For any vector given in advance there are such that
lsp::givens_rotation< T >::givens_rotation | ( | value_type & | x, | |
value_type & | y | |||
) | [inline] |
An object constructor.
[in,out] | x | The first vector coordinate. After construction |
[in,out] | y | The second vector cooridnate. After construction |
void lsp::givens_rotation< T >::apply | ( | U & | x, | |
U & | y | |||
) | const [inline] |
Transformation operaton.
[in,out] | x | The first coordinate of vector |
[in,out] | y | The second coordinate of vector |
and stores it in the x and y accordingly.
Matrix operations, like may be also computed if we represent the matrix as vector of vector-row or vector-column accordingly. Put it in other way we may assume that and are not scalar but vector values.
const value_type lsp::givens_rotation< T >::c | ( | ) | const [inline] |
const value_type lsp::givens_rotation< T >::s | ( | ) | const [inline] |