|
◆ Zrot()
Sub Zrot |
( |
N As |
Long, |
|
|
ZX_I As |
Complex, |
|
|
ZY_I As |
Complex, |
|
|
C As |
Double, |
|
|
ZS As |
Complex, |
|
|
Optional IncX As |
Long = 1 , |
|
|
Optional IncY As |
Long = 1 |
|
) |
| |
Applies Givens plane rotation (complex vector) (BLAS 1)
- Purpose
- This routine applies the Givens plane rotation constructed by Zrotg.
- Parameters
-
[in] | N | Number of elements in vectors x and y. (If N <= 0, returns without computation) |
[in] | ZX_I | An element X(I) of the array X().
[in] Starting from this location, vector x is stored with element spacing IncX.
[out] Starting from this location, vector x after rotation is stored with element spacing IncX.
x(i) after rotation = c*x(i) + s*y(i) (i = 1 to N) |
[in] | ZY_I | An element Y(I) of the array Y().
[in] Starting from this location, vector y is stored with element spacing IncY.
[out] Starting from this location, vector y after rotation is stored with element spacing IncY.
y(i) after rotation = -conjg(s)*x(i) + c*y(i) (i = 1 to N) |
[in] | C | c (cosine) value. |
[in] | ZS | s (sine) value. |
[in] | IncX | (Optional)
Element spacing of vector x in the array X(). (default = 1) |
[in] | IncY | (Optional)
Element spacing of vector y in the array Y(). (default = 1) |
- Reference
- LAPACK
|