opmtr#

Functions

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

SOPMTR overwrites the general real M-by-N matrix C with.

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

where Q is a real orthogonal 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 SSPTRD 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**T from the Left; = ‘R’: apply Q or Q**T from the Right.

in
uplo

= ‘U’: Upper triangular packed storage used in previous call to SSPTRD; = ‘L’: Lower triangular packed storage used in previous call to SSPTRD.

in
trans

= ‘N’: No transpose, apply Q; = ‘T’: Transpose, apply Q**T.

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

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

in
tau

Double precision array, dimension (m-1) if side = ‘L’ or (n-1) if side = ‘R’.

inout
C

Double precision array, dimension (ldc, n). On entry, the M-by-N matrix C. On exit, C is overwritten by Q*C or Q**T*C or C*Q**T or C*Q.

in
ldc

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

out
work

Double precision 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 dopmtr(
    const char*          side,
    const char*          uplo,
    const char*          trans,
    const INT            m,
    const INT            n,
          f64*  restrict AP,
    const f64*  restrict tau,
          f64*  restrict C,
    const INT            ldc,
          f64*  restrict work,
          INT*           info
);
void dopmtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, f64 *restrict AP, const f64 *restrict tau, f64 *restrict C, const INT ldc, f64 *restrict work, INT *info)#

DOPMTR overwrites the general real M-by-N matrix C with.

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

where Q is a real orthogonal 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 DSPTRD 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**T from the Left; = ‘R’: apply Q or Q**T from the Right.

in
uplo

= ‘U’: Upper triangular packed storage used in previous call to DSPTRD; = ‘L’: Lower triangular packed storage used in previous call to DSPTRD.

in
trans

= ‘N’: No transpose, apply Q; = ‘T’: Transpose, apply Q**T.

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

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

in
tau

Double precision array, dimension (m-1) if side = ‘L’ or (n-1) if side = ‘R’.

inout
C

Double precision array, dimension (ldc, n). On entry, the M-by-N matrix C. On exit, C is overwritten by Q*C or Q**T*C or C*Q**T or C*Q.

in
ldc

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

out
work

Double precision 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.