ormtr#
Functions
-
void sormtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, const f32 *restrict A, const INT lda, const f32 *restrict tau, f32 *restrict C, const INT ldc, f32 *restrict work, const INT lwork, INT *info)#
SORMTR overwrites the general real M-by-N matrix C with.
TRANS = ‘N’: Q * C C * Q TRANS = ‘T’: Q^T * C C * Q^TSIDE = 'L' SIDE = 'R'
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 SSYTRD:
if UPLO = ‘U’, Q = H(nq-1) … H(2) H(1);
if UPLO = ‘L’, Q = H(1) H(2) … H(nq-1).
Parameters
inside= ‘L’: apply Q or Q^T from the Left; = ‘R’: apply Q or Q^T from the Right.
inuplo= ‘U’: Upper triangle of A contains elementary reflectors from SSYTRD; = ‘L’: Lower triangle of A contains elementary reflectors from SSYTRD.
intrans= ‘N’: No transpose, apply Q; = ‘T’: Transpose, apply Q^T.
inmThe number of rows of C. m >= 0.
innThe number of columns of C. n >= 0.
inADouble precision array, dimension (lda, m) if SIDE = ‘L’, (lda, n) if SIDE = ‘R’. The vectors which define the elementary reflectors, as returned by SSYTRD.
inldaThe leading dimension of A. lda >= max(1, m) if SIDE = ‘L’; lda >= max(1, n) if SIDE = ‘R’.
intauDouble precision 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 SSYTRD.
inoutCDouble 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.
inldcThe leading dimension of C. ldc >= max(1, m).
outworkDouble precision array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.
inlworkThe 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.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void sormtr(
const char* side,
const char* uplo,
const char* trans,
const INT m,
const INT n,
const f32* restrict A,
const INT lda,
const f32* restrict tau,
f32* restrict C,
const INT ldc,
f32* restrict work,
const INT lwork,
INT* info
);
Functions
-
void dormtr(const char *side, const char *uplo, const char *trans, const INT m, const INT n, const f64 *restrict A, const INT lda, const f64 *restrict tau, f64 *restrict C, const INT ldc, f64 *restrict work, const INT lwork, INT *info)#
DORMTR overwrites the general real M-by-N matrix C with.
TRANS = ‘N’: Q * C C * Q TRANS = ‘T’: Q^T * C C * Q^TSIDE = 'L' SIDE = 'R'
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 DSYTRD:
if UPLO = ‘U’, Q = H(nq-1) … H(2) H(1);
if UPLO = ‘L’, Q = H(1) H(2) … H(nq-1).
Parameters
inside= ‘L’: apply Q or Q^T from the Left; = ‘R’: apply Q or Q^T from the Right.
inuplo= ‘U’: Upper triangle of A contains elementary reflectors from DSYTRD; = ‘L’: Lower triangle of A contains elementary reflectors from DSYTRD.
intrans= ‘N’: No transpose, apply Q; = ‘T’: Transpose, apply Q^T.
inmThe number of rows of C. m >= 0.
innThe number of columns of C. n >= 0.
inADouble precision array, dimension (lda, m) if SIDE = ‘L’, (lda, n) if SIDE = ‘R’. The vectors which define the elementary reflectors, as returned by DSYTRD.
inldaThe leading dimension of A. lda >= max(1, m) if SIDE = ‘L’; lda >= max(1, n) if SIDE = ‘R’.
intauDouble precision 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 DSYTRD.
inoutCDouble 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.
inldcThe leading dimension of C. ldc >= max(1, m).
outworkDouble precision array, dimension (max(1, lwork)). On exit, if info = 0, work[0] returns the optimal lwork.
inlworkThe 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.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void dormtr(
const char* side,
const char* uplo,
const char* trans,
const INT m,
const INT n,
const f64* restrict A,
const INT lda,
const f64* restrict tau,
f64* restrict C,
const INT ldc,
f64* restrict work,
const INT lwork,
INT* info
);