lag2c#

Functions

void zlag2c(
    const INT            m,
    const INT            n,
    const c128* restrict A,
    const INT            lda,
          c64*  restrict SA,
    const INT            ldsa,
          INT*           info
);
void zlag2c(const INT m, const INT n, const c128 *restrict A, const INT lda, c64 *restrict SA, const INT ldsa, INT *info)#

ZLAG2C converts a COMPLEX*16 matrix, A, to a COMPLEX matrix, SA.

RMAX is the overflow for the SINGLE PRECISION arithmetic. ZLAG2C checks that all the entries of A are between -RMAX and RMAX. If not the conversion is aborted and a flag is raised.

This is an auxiliary routine so there is no argument checking.

Parameters

in
m

The number of lines of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

in
A

Complex*16 array, dimension (lda, n). On entry, the M-by-N coefficient matrix A.

in
lda

The leading dimension of the array A. lda >= max(1, m).

out
SA

Complex (single precision) array, dimension (ldsa, n). On exit, if info=0, the M-by-N coefficient matrix SA; if info>0, the content of SA is unspecified.

in
ldsa

The leading dimension of the array SA. ldsa >= max(1, m).

out
info

Exit status:

  • = 0: successful exit.

  • = 1: an entry of the matrix A is greater than the SINGLE PRECISION overflow threshold, in this case, the content of SA is unspecified.