cblas_?rotg
cblas_?rotg
Computes the parameters for a Givens rotation.
Syntax
void
cblas_srotg
(
float
*a
,
float
*b
,
float
*c
,
float
*s
);
void
cblas_drotg
(
double
*a
,
double
*b
,
double
*c
,
double
*s
);
void
cblas_crotg
(
void
*a
,
const
void
*b
,
float
*c
,
void
*s
);
void
cblas_zrotg
(
void
*a
,
const
void
*b
,
double
*c
,
void
*s
);
Include Files
- mkl.h
Description
Given the Cartesian coordinates
(
of a point, a
, b
)these
routines return the parameters c
, s
, r
, and z
associated with the Givens rotation. The parameters c
and s
define a unitary matrix such that:
The parameter
z
is defined such that if |a
| > |b
|, z
is s
; otherwise if c
is not 0 z
is 1/c
; otherwise z
is 1. Input Parameters
- a
- Provides thex-coordinate of the pointp.
- b
- Provides they-coordinate of the pointp.
Output Parameters
- a
- Containsthe parameterrassociated with the Givens rotation.
- b
- Containsthe parameterzassociated with the Givens rotation.
- c
- Containsthe parametercassociated with the Givens rotation.
- s
- Containsthe parametersassociated with the Givens rotation.