unm2l#

Functions

void cunm2l(
    const char*          side,
    const char*          trans,
    const INT            m,
    const INT            n,
    const INT            k,
    const c64*  restrict A,
    const INT            lda,
    const c64*  restrict tau,
          c64*  restrict C,
    const INT            ldc,
          c64*  restrict work,
          INT*           info
);
void cunm2l(const char *side, const char *trans, const INT m, const INT n, const INT k, const c64 *restrict A, const INT lda, const c64 *restrict tau, c64 *restrict C, const INT ldc, c64 *restrict work, INT *info)#

CUNM2L overwrites the general complex m-by-n matrix C with.

Q * C if SIDE = ‘L’ and TRANS = ‘N’, or

Q**H* C if SIDE = ‘L’ and TRANS = ‘C’, or

C * Q if SIDE = ‘R’ and TRANS = ‘N’, or

C * Q**H if SIDE = ‘R’ and TRANS = ‘C’,

where Q is a complex unitary matrix defined as the product of k elementary reflectors

Q = H(k) … H(2) H(1)

as returned by CGEQLF. Q is of order m if SIDE = ‘L’ and of order n if SIDE = ‘R’.

Parameters

in
side

‘L’: apply Q or Q**H from the Left; ‘R’: apply Q or Q**H from the Right.

in
trans

‘N’: apply Q (No transpose); ‘C’: apply Q**H (Conjugate transpose).

in
m

The number of rows of C. m >= 0.

in
n

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

in
k

The number of elementary reflectors. If SIDE = ‘L’, m >= k >= 0; if SIDE = ‘R’, n >= k >= 0.

in
A

COMPLEX*16 array, dimension (lda, k). The i-th column must contain the vector which defines the elementary reflector H(i), for i = 0,1,…,k-1, as returned by CGEQLF in the last k columns of its array argument A. A is modified by the routine but restored on exit.

in
lda

The leading dimension of A. If SIDE = ‘L’, lda >= max(1, m); if SIDE = ‘R’, lda >= max(1, n).

in
tau

COMPLEX*16 array, dimension (k). tau[i] must contain the scalar factor of the elementary reflector H(i), as returned by CGEQLF.

inout
C

COMPLEX*16 array, dimension (ldc, n). On entry, the m-by-n matrix C. On exit, C is overwritten by Q*C or Q**H*C or C*Q**H or C*Q.

in
ldc

The leading dimension of C. ldc >= max(1, m).

out
work

COMPLEX*16 array, dimension (n) if SIDE = ‘L’, (m) if SIDE = ‘R’.

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value.

Functions

void zunm2l(
    const char*          side,
    const char*          trans,
    const INT            m,
    const INT            n,
    const INT            k,
    const c128* restrict A,
    const INT            lda,
    const c128* restrict tau,
          c128* restrict C,
    const INT            ldc,
          c128* restrict work,
          INT*           info
);
void zunm2l(const char *side, const char *trans, const INT m, const INT n, const INT k, const c128 *restrict A, const INT lda, const c128 *restrict tau, c128 *restrict C, const INT ldc, c128 *restrict work, INT *info)#

ZUNM2L overwrites the general complex m-by-n matrix C with.

Q * C if SIDE = ‘L’ and TRANS = ‘N’, or

Q**H* C if SIDE = ‘L’ and TRANS = ‘C’, or

C * Q if SIDE = ‘R’ and TRANS = ‘N’, or

C * Q**H if SIDE = ‘R’ and TRANS = ‘C’,

where Q is a complex unitary matrix defined as the product of k elementary reflectors

Q = H(k) … H(2) H(1)

as returned by ZGEQLF. Q is of order m if SIDE = ‘L’ and of order n if SIDE = ‘R’.

Parameters

in
side

‘L’: apply Q or Q**H from the Left; ‘R’: apply Q or Q**H from the Right.

in
trans

‘N’: apply Q (No transpose); ‘C’: apply Q**H (Conjugate transpose).

in
m

The number of rows of C. m >= 0.

in
n

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

in
k

The number of elementary reflectors. If SIDE = ‘L’, m >= k >= 0; if SIDE = ‘R’, n >= k >= 0.

in
A

COMPLEX*16 array, dimension (lda, k). The i-th column must contain the vector which defines the elementary reflector H(i), for i = 0,1,…,k-1, as returned by ZGEQLF in the last k columns of its array argument A. A is modified by the routine but restored on exit.

in
lda

The leading dimension of A. If SIDE = ‘L’, lda >= max(1, m); if SIDE = ‘R’, lda >= max(1, n).

in
tau

COMPLEX*16 array, dimension (k). tau[i] must contain the scalar factor of the elementary reflector H(i), as returned by ZGEQLF.

inout
C

COMPLEX*16 array, dimension (ldc, n). On entry, the m-by-n matrix C. On exit, C is overwritten by Q*C or Q**H*C or C*Q**H or C*Q.

in
ldc

The leading dimension of C. ldc >= max(1, m).

out
work

COMPLEX*16 array, dimension (n) if SIDE = ‘L’, (m) if SIDE = ‘R’.

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value.