unmqr#

Functions

void cunmqr(
    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,
    const INT            lwork,
          INT*           info
);
void cunmqr(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, const INT lwork, INT *info)#

CUNMQR overwrites the general complex M-by-N matrix C with.

         SIDE = 'L'     SIDE = 'R'
TRANS = ‘N’: Q * C C * Q TRANS = ‘C’: Q**H * C C * Q**H

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

Q = H(0) H(1) … H(k-1)

as returned by CGEQRF. Q is of order M if SIDE = ‘L’ and of order N if SIDE = ‘R’.

This is the blocked Level 3 BLAS version of the algorithm.

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

The i-th column must contain the vector which defines the elementary reflector H(i), as returned by CGEQRF. Dimension (lda, k).

in
lda

Leading dimension of A. If SIDE = “L”, lda >= max(1, m); if SIDE = “R”, lda >= max(1, n).

in
tau

Array of dimension (k). TAU(i) is the scalar factor of H(i), as returned by CGEQRF.

inout
C

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

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

out
work

Workspace, dimension (max(1, lwork)). On exit, work[0] contains the optimal lwork.

in
lwork

Dimension of work. If SIDE = “L”, lwork >= max(1, n); if SIDE = “R”, lwork >= max(1, m). If lwork == -1, workspace query only.

out
info

  • = 0: successful exit

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

Functions

void zunmqr(
    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,
    const INT            lwork,
          INT*           info
);
void zunmqr(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, const INT lwork, INT *info)#

ZUNMQR overwrites the general complex M-by-N matrix C with.

         SIDE = 'L'     SIDE = 'R'
TRANS = ‘N’: Q * C C * Q TRANS = ‘C’: Q**H * C C * Q**H

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

Q = H(0) H(1) … H(k-1)

as returned by ZGEQRF. Q is of order M if SIDE = ‘L’ and of order N if SIDE = ‘R’.

This is the blocked Level 3 BLAS version of the algorithm.

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

The i-th column must contain the vector which defines the elementary reflector H(i), as returned by ZGEQRF. Dimension (lda, k).

in
lda

Leading dimension of A. If SIDE = “L”, lda >= max(1, m); if SIDE = “R”, lda >= max(1, n).

in
tau

Array of dimension (k). TAU(i) is the scalar factor of H(i), as returned by ZGEQRF.

inout
C

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

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

out
work

Workspace, dimension (max(1, lwork)). On exit, work[0] contains the optimal lwork.

in
lwork

Dimension of work. If SIDE = “L”, lwork >= max(1, n); if SIDE = “R”, lwork >= max(1, m). If lwork == -1, workspace query only.

out
info

  • = 0: successful exit

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