BLAS++ 2024.05.31
BLAS C++ API
Loading...
Searching...
No Matches
rotm: Apply modified (fast) Givens plane rotation

Functions

template<typename TX , typename TY >
void blas::rotm (int64_t n, TX *x, int64_t incx, TY *y, int64_t incy, blas::scalar_type< TX, TY > const param[5])
 Apply modified (fast) plane rotation, H:
 
void blas::rotm (int64_t n, float *x, int64_t incx, float *y, int64_t incy, float const param[5])
 
void blas::rotm (int64_t n, double *x, int64_t incx, double *y, int64_t incy, double const param[5])
 

Detailed Description

Function Documentation

◆ rotm()

template<typename TX , typename TY >
void blas::rotm ( int64_t  n,
TX *  x,
int64_t  incx,
TY *  y,
int64_t  incy,
blas::scalar_type< TX, TY > const  param[5] 
)

Apply modified (fast) plane rotation, H:

\[ \begin{bmatrix} x^T \\ y^T \end{bmatrix} = H \begin{bmatrix} x^T \\ y^T \end{bmatrix}. \]

See also
rotmg to generate the rotation, and for fuller description.

Generic implementation for arbitrary data types.

Parameters
[in]nNumber of elements in x and y. n >= 0.
[in,out]xThe n-element vector x, in an array of length (n-1)*abs(incx) + 1.
[in]incxStride between elements of x. incx must not be zero. If incx < 0, uses elements of x in reverse order: x(n-1), ..., x(0).
[in,out]yThe n-element vector y, in an array of length (n-1)*abs(incy) + 1.
[in]incyStride between elements of y. incy must not be zero. If incy < 0, uses elements of y in reverse order: y(n-1), ..., y(0).
[in]paramArray of length 5 giving parameters of modified plane rotation.