XLPack 6.1
Excel VBA Numerical Library Reference Manual
Loading...
Searching...
No Matches

◆ 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]NNumber of elements in vectors x and y. (If N <= 0, returns without computation)
[in]ZX_IAn 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_IAn 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]Cc (cosine) value.
[in]ZSs (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