upmtr#

Functions

void cupmtr(
    const char*          side,
    const char*          uplo,
    const char*          trans,
    const INT            m,
    const INT            n,
          c64*  restrict AP,
    const c64*  restrict tau,
          c64*  restrict C,
    const INT            ldc,
          c64*  restrict work,
          INT*           info
);
void cupmtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, c64 *restrict AP, const c64 *restrict tau, c64 *restrict C, const INT ldc, c64 *restrict work, INT *info)#

CUPMTR 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 CHPTRD using packed storage:

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 triangular packed storage used in previous call to CHPTRD; ‘L’: Lower triangular packed storage used in previous call to CHPTRD.

in
trans

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

in
m

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

in
n

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

in
AP

Complex array, dimension (m*(m+1)/2) if side = ‘L’ or (n*(n+1)/2) if side = ‘R’. The vectors which define the elementary reflectors, as returned by CHPTRD. AP is modified by the routine but restored on exit.

in
tau

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

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 the array C. ldc >= max(1,m).

out
work

Complex array, dimension (n) if side = ‘L’ or (m) if side = ‘R’.

out
info

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

Functions

void zupmtr(
    const char*          side,
    const char*          uplo,
    const char*          trans,
    const INT            m,
    const INT            n,
          c128* restrict AP,
    const c128* restrict tau,
          c128* restrict C,
    const INT            ldc,
          c128* restrict work,
          INT*           info
);
void zupmtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, c128 *restrict AP, const c128 *restrict tau, c128 *restrict C, const INT ldc, c128 *restrict work, INT *info)#

ZUPMTR 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 ZHPTRD using packed storage:

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 triangular packed storage used in previous call to ZHPTRD; ‘L’: Lower triangular packed storage used in previous call to ZHPTRD.

in
trans

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

in
m

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

in
n

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

in
AP

Complex array, dimension (m*(m+1)/2) if side = ‘L’ or (n*(n+1)/2) if side = ‘R’. The vectors which define the elementary reflectors, as returned by ZHPTRD. AP is modified by the routine but restored on exit.

in
tau

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

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 the array C. ldc >= max(1,m).

out
work

Complex array, dimension (n) if side = ‘L’ or (m) if side = ‘R’.

out
info

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