|
◆ Zrotg()
Sub Zrotg |
( |
ZA As |
Complex, |
|
|
ZB As |
Complex, |
|
|
C As |
Double, |
|
|
ZS As |
Complex |
|
) |
| |
Constructs Givens plane rotation (complex vector) (BLAS 1)
- Purpose
- This routine constructs Givens plane rotation for the point (a, b) as below.
( c s ) * ( a ) = ( r )
(-conjg(s) c ) ( b ) ( 0 )
where r = (a/sqrt(conjg(a)*a))*sqrt(conjg(a)*a + conjg(b)*b), if |a| != 0,
r = b, if |a| = 0.
The constructed plane rotation can be used by Zrot to convert the points to the new coordinate system.
- Parameters
-
[in,out] | ZA | [in] a value
[out] r value |
[in] | ZB | b value. |
[out] | C | c (cosine) value. |
[out] | ZS | s (sine) value. |
- Reference
- BLAS
|