rscl#

Functions

void srscl(
    const INT           n,
    const f32           sa,
          f32* restrict sx,
    const INT           incx
);
void srscl(const INT n, const f32 sa, f32 *restrict sx, const INT incx)#

SRSCL multiplies an n-element real vector x by the real scalar 1/a.

This is done without overflow or underflow as long as the final result x/a does not overflow or underflow.

Parameters

in
n

The number of components of the vector x.

in
sa

The scalar a which is used to divide each component of x. sa must be >= 0, or the subroutine will divide by zero.

inout
sx

The n-element vector x. Array of dimension (1+(n-1)*abs(incx)).

in
incx

The increment between successive values of the vector sx. incx > 0.

Functions

void drscl(
    const INT           n,
    const f64           sa,
          f64* restrict sx,
    const INT           incx
);
void drscl(const INT n, const f64 sa, f64 *restrict sx, const INT incx)#

DRSCL multiplies an n-element real vector x by the real scalar 1/a.

This is done without overflow or underflow as long as the final result x/a does not overflow or underflow.

Parameters

in
n

The number of components of the vector x.

in
sa

The scalar a which is used to divide each component of x. sa must be >= 0, or the subroutine will divide by zero.

inout
sx

The n-element vector x. Array of dimension (1+(n-1)*abs(incx)).

in
incx

The increment between successive values of the vector sx. incx > 0.

Functions

void crscl(
    const INT           n,
    const c64           a,
          c64* restrict x,
    const INT           incx
);
void crscl(const INT n, const c64 a, c64 *restrict x, const INT incx)#

CRSCL multiplies an n-element complex vector x by the complex scalar 1/a.

This is done without overflow or underflow as long as the final result x/a does not overflow or underflow.

Parameters

in
n

The number of components of the vector x.

in
a

The scalar a which is used to divide each component of x. a must not be 0, or the subroutine will divide by zero.

inout
x

Complex*16 array, dimension (1+(n-1)*abs(incx)). The n-element vector x.

in
incx

The increment between successive values of the vector x. incx > 0.

Functions

void zrscl(
    const INT            n,
    const c128           a,
          c128* restrict x,
    const INT            incx
);
void zrscl(const INT n, const c128 a, c128 *restrict x, const INT incx)#

ZRSCL multiplies an n-element complex vector x by the complex scalar 1/a.

This is done without overflow or underflow as long as the final result x/a does not overflow or underflow.

Parameters

in
n

The number of components of the vector x.

in
a

The scalar a which is used to divide each component of x. a must not be 0, or the subroutine will divide by zero.

inout
x

Complex*16 array, dimension (1+(n-1)*abs(incx)). The n-element vector x.

in
incx

The increment between successive values of the vector x. incx > 0.