lascl2#

Functions

void clascl2(
    const INT           m,
    const INT           n,
    const f32* restrict D,
          c64* restrict X,
    const INT           ldx
);
void clascl2(const INT m, const INT n, const f32 *restrict D, c64 *restrict X, const INT ldx)#

CLASCL2 performs a diagonal scaling on a matrix: x <&#8212; D * x where the DOUBLE PRECISION diagonal matrix D is stored as a vector.

Eventually to be replaced by BLAS_zge_diag_scale in the new BLAS standard.

Parameters

in
m

The number of rows of D and X. m >= 0.

in
n

The number of columns of X. n >= 0.

in
D

Single precision array, length m. Diagonal matrix D, stored as a vector of length m.

inout
X

Complex*16 array, dimension (ldx, n). On entry, the matrix X to be scaled by D. On exit, the scaled matrix.

in
ldx

The leading dimension of the matrix X. ldx >= m.

Functions

void zlascl2(
    const INT            m,
    const INT            n,
    const f64*  restrict D,
          c128* restrict X,
    const INT            ldx
);
void zlascl2(const INT m, const INT n, const f64 *restrict D, c128 *restrict X, const INT ldx)#

ZLASCL2 performs a diagonal scaling on a matrix: x <&#8212; D * x where the DOUBLE PRECISION diagonal matrix D is stored as a vector.

Eventually to be replaced by BLAS_zge_diag_scale in the new BLAS standard.

Parameters

in
m

The number of rows of D and X. m >= 0.

in
n

The number of columns of X. n >= 0.

in
D

Double precision array, length m. Diagonal matrix D, stored as a vector of length m.

inout
X

Complex*16 array, dimension (ldx, n). On entry, the matrix X to be scaled by D. On exit, the scaled matrix.

in
ldx

The leading dimension of the matrix X. ldx >= m.