cblas_?rotm
cblas_?rotm
Performs modified Givens rotation of points in the plane.
Syntax
void
cblas_srotm
(
const
MKL_INT
n
,
float
*x
,
const
MKL_INT
incx
,
float
*y
,
const
MKL_INT
incy
,
const
float
*param
);
void
cblas_drotm
(
const
MKL_INT
n
,
double
*x
,
const
MKL_INT
incx
,
double
*y
,
const
MKL_INT
incy
,
const
double
*param
);
Include Files
- mkl.h
Description
Given two vectors
x
and y
, each vector element of these vectors is replaced as follows: 
for through array. See discussion on the
i
=1 to n
, where H
is a modified Givens transformation matrix whose values are stored in the param
[1]param
[4]param
argument.Input Parameters
- n
- Specifies the number of elements in vectorsxandy.
- x
- Array, size at least(1 + (.n-1)*abs(incx))
- incx
- Specifies the increment for the elements ofx.
- y
- Array, size at least(1 + (.n-1)*abs(incy))
- incy
- Specifies the increment for the elements ofy.
- param
- Array, size 5.The elements of theparamarray are:contains a switch,param[0]flag.containparam[1-4]h11,h21,h12, andh22, respectively, the components of the arrayH.Depending on the values offlag, the components ofHare set as follows:flag=-1.0:flag=0.0:flag=1.0:flag=-2.0:In the last three cases, the matrix entries of 1.0, -1.0, and 0.0 are assumed based on the value offlagand are not required to be set in theparamvector.
Output Parameters
- x
- Each elementx[i]is replaced by.h11*x[i]+h12*y[i]
- y
- Each elementy[i]is replaced byh21*x[i]+h22*y[i].