unmtr#

Functions

void cunmtr(
    const char*          side,
    const char*          uplo,
    const char*          trans,
    const INT            m,
    const INT            n,
    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 cunmtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, 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)#

CUNMTR 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 of order nq, with nq = m if SIDE = ‘L’ and nq = n if SIDE = ‘R’. Q is defined as the product of nq-1 elementary reflectors, as returned by CHETRD:

if UPLO = ‘U’, Q = H(nq-1) … H(2) H(1);

if UPLO = ‘L’, Q = H(1) H(2) … H(nq-1).

Parameters

in
side

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

in
uplo

= ‘U’: Upper triangle of A contains elementary reflectors from CHETRD; = ‘L’: Lower triangle of A contains elementary reflectors from CHETRD.

in
trans

= ‘N’: No transpose, apply Q; = ‘C’: Conjugate transpose, apply Q**H.

in
m

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

in
n

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

in
A

Complex array, dimension (lda, m) if SIDE = ‘L’, (lda, n) if SIDE = ‘R’. The vectors which define the elementary reflectors, as returned by CHETRD.

in
lda

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

in
tau

Complex array, dimension (m-1) if SIDE = ‘L’, (n-1) if SIDE = ‘R’. TAU(i) must contain the scalar factor of the elementary reflector H(i), as returned by CHETRD.

inout
C

Complex 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 array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.

in
lwork

The dimension of the array work. If SIDE = ‘L’, lwork >= max(1, n); if SIDE = ‘R’, lwork >= max(1, m). For optimum performance lwork >= n*nb if SIDE = ‘L’, and lwork >= m*nb if SIDE = ‘R’, where nb is the optimal blocksize. If lwork = -1, then a workspace query is assumed.

out
info

  • = 0: successful exit

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

Functions

void zunmtr(
    const char*          side,
    const char*          uplo,
    const char*          trans,
    const INT            m,
    const INT            n,
    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 zunmtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, 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)#

ZUNMTR 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 of order nq, with nq = m if SIDE = ‘L’ and nq = n if SIDE = ‘R’. Q is defined as the product of nq-1 elementary reflectors, as returned by ZHETRD:

if UPLO = ‘U’, Q = H(nq-1) … H(2) H(1);

if UPLO = ‘L’, Q = H(1) H(2) … H(nq-1).

Parameters

in
side

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

in
uplo

= ‘U’: Upper triangle of A contains elementary reflectors from ZHETRD; = ‘L’: Lower triangle of A contains elementary reflectors from ZHETRD.

in
trans

= ‘N’: No transpose, apply Q; = ‘C’: Conjugate transpose, apply Q**H.

in
m

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

in
n

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

in
A

Complex array, dimension (lda, m) if SIDE = ‘L’, (lda, n) if SIDE = ‘R’. The vectors which define the elementary reflectors, as returned by ZHETRD.

in
lda

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

in
tau

Complex array, dimension (m-1) if SIDE = ‘L’, (n-1) if SIDE = ‘R’. TAU(i) must contain the scalar factor of the elementary reflector H(i), as returned by ZHETRD.

inout
C

Complex 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 array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.

in
lwork

The dimension of the array work. If SIDE = ‘L’, lwork >= max(1, n); if SIDE = ‘R’, lwork >= max(1, m). For optimum performance lwork >= n*nb if SIDE = ‘L’, and lwork >= m*nb if SIDE = ‘R’, where nb is the optimal blocksize. If lwork = -1, then a workspace query is assumed.

out
info

  • = 0: successful exit

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