SUBROUTINE SORMTR( SIDE, UPLO, TRANS, M, N, A, LDA, TAU, C, LDC, * WORK, LWORK, INFO) CHARACTER * 1 SIDE, UPLO, TRANS INTEGER M, N, LDA, LDC, LWORK, INFO REAL A(LDA,*), TAU(*), C(LDC,*), WORK(*) SUBROUTINE SORMTR_64( SIDE, UPLO, TRANS, M, N, A, LDA, TAU, C, LDC, * WORK, LWORK, INFO) CHARACTER * 1 SIDE, UPLO, TRANS INTEGER*8 M, N, LDA, LDC, LWORK, INFO REAL A(LDA,*), TAU(*), C(LDC,*), WORK(*)
SUBROUTINE ORMTR( SIDE, UPLO, [TRANS], [M], [N], A, [LDA], TAU, C, * [LDC], [WORK], [LWORK], [INFO]) CHARACTER(LEN=1) :: SIDE, UPLO, TRANS INTEGER :: M, N, LDA, LDC, LWORK, INFO REAL, DIMENSION(:) :: TAU, WORK REAL, DIMENSION(:,:) :: A, C SUBROUTINE ORMTR_64( SIDE, UPLO, [TRANS], [M], [N], A, [LDA], TAU, * C, [LDC], [WORK], [LWORK], [INFO]) CHARACTER(LEN=1) :: SIDE, UPLO, TRANS INTEGER(8) :: M, N, LDA, LDC, LWORK, INFO REAL, DIMENSION(:) :: TAU, WORK REAL, DIMENSION(:,:) :: A, C
void sormtr(char side, char uplo, char trans, int m, int n, float *a, int lda, float *tau, float *c, int ldc, int *info);
void sormtr_64(char side, char uplo, char trans, long m, long n, float *a, long lda, float *tau, float *c, long ldc, long *info);
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).
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.