lacrt#

Functions

void clacrt(
    const INT           n,
          c64* restrict cx,
    const INT           incx,
          c64* restrict cy,
    const INT           incy,
    const c64           c,
    const c64           s
);
void clacrt(const INT n, c64 *restrict cx, const INT incx, c64 *restrict cy, const INT incy, const c64 c, const c64 s)#

CLACRT performs the operation.

( c s )( x ) ==> ( x ) ( -s c )( y ) ( y )

where c and s are complex and the vectors x and y are complex.

Parameters

in
n

The number of elements in the vectors CX and CY.

inout
cx

Complex array, dimension (N). On input, the vector x. On output, CX is overwritten with c*x + s*y.

in
incx

The increment between successive values of CX. incx <> 0.

inout
cy

Complex array, dimension (N). On input, the vector y. On output, CY is overwritten with -s*x + c*y.

in
incy

The increment between successive values of CY. incy <> 0.

in
c

Complex scalar.

in
s

Complex scalar. C and S define the matrix [ C S ]. [ -S C ]

Functions

void zlacrt(
    const INT            n,
          c128* restrict cx,
    const INT            incx,
          c128* restrict cy,
    const INT            incy,
    const c128           c,
    const c128           s
);
void zlacrt(const INT n, c128 *restrict cx, const INT incx, c128 *restrict cy, const INT incy, const c128 c, const c128 s)#

ZLACRT performs the operation.

( c s )( x ) ==> ( x ) ( -s c )( y ) ( y )

where c and s are complex and the vectors x and y are complex.

Parameters

in
n

The number of elements in the vectors CX and CY.

inout
cx

Complex array, dimension (N). On input, the vector x. On output, CX is overwritten with c*x + s*y.

in
incx

The increment between successive values of CX. incx <> 0.

inout
cy

Complex array, dimension (N). On input, the vector y. On output, CY is overwritten with -s*x + c*y.

in
incy

The increment between successive values of CY. incy <> 0.

in
c

Complex scalar.

in
s

Complex scalar. C and S define the matrix [ C S ]. [ -S C ]