1SORMTR(1)                LAPACK routine (version 3.2)                SORMTR(1)
2
3
4

NAME

6       SORMTR  - overwrites the general real M-by-N matrix C with   SIDE = 'L'
7       SIDE = 'R' TRANS = 'N'
8

SYNOPSIS

10       SUBROUTINE SORMTR( SIDE, UPLO, TRANS, M, N, A, LDA, TAU, C, LDC,  WORK,
11                          LWORK, INFO )
12
13           CHARACTER      SIDE, TRANS, UPLO
14
15           INTEGER        INFO, LDA, LDC, LWORK, M, N
16
17           REAL           A( LDA, * ), C( LDC, * ), TAU( * ), WORK( * )
18

PURPOSE

20       SORMTR  overwrites  the  general real M-by-N matrix C with TRANS = 'T':
21       Q**T * C       C * Q**T
22       where Q is a real orthogonal matrix of order nq, with nq = m if SIDE  =
23       'L'  and nq = n if SIDE = 'R'. Q is defined as the product of nq-1 ele‐
24       mentary reflectors, as returned by SSYTRD:
25       if UPLO = 'U', Q = H(nq-1) . . . H(2) H(1);
26       if UPLO = 'L', Q = H(1) H(2) . . . H(nq-1).
27

ARGUMENTS

29       SIDE    (input) CHARACTER*1
30               = 'L': apply Q or Q**T from the Left;
31               = 'R': apply Q or Q**T from the Right.
32
33       UPLO    (input) CHARACTER*1
34               = 'U': Upper triangle of A contains elementary reflectors  from
35               SSYTRD;  = 'L': Lower triangle of A contains elementary reflec‐
36               tors from SSYTRD.
37
38       TRANS   (input) CHARACTER*1
39               = 'N':  No transpose, apply Q;
40               = 'T':  Transpose, apply Q**T.
41
42       M       (input) INTEGER
43               The number of rows of the matrix C. M >= 0.
44
45       N       (input) INTEGER
46               The number of columns of the matrix C. N >= 0.
47
48       A       (input) REAL array, dimension
49               (LDA,M) if SIDE = 'L' (LDA,N) if SIDE = 'R' The  vectors  which
50               define the elementary reflectors, as returned by SSYTRD.
51
52       LDA     (input) INTEGER
53               The  leading dimension of the array A.  LDA >= max(1,M) if SIDE
54               = 'L'; LDA >= max(1,N) if SIDE = 'R'.
55
56       TAU     (input) REAL array, dimension
57               (M-1) if SIDE = 'L' (N-1) if SIDE = 'R' TAU(i) must contain the
58               scalar  factor of the elementary reflector H(i), as returned by
59               SSYTRD.
60
61       C       (input/output) REAL array, dimension (LDC,N)
62               On entry, the M-by-N matrix C.  On exit, C  is  overwritten  by
63               Q*C or Q**T*C or C*Q**T or C*Q.
64
65       LDC     (input) INTEGER
66               The leading dimension of the array C. LDC >= max(1,M).
67
68       WORK    (workspace/output) REAL array, dimension (MAX(1,LWORK))
69               On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
70
71       LWORK   (input) INTEGER
72               The  dimension  of  the  array  WORK.   If SIDE = 'L', LWORK >=
73               max(1,N); if SIDE = 'R', LWORK >= max(1,M).  For  optimum  per‐
74               formance LWORK >= N*NB if SIDE = 'L', and LWORK >= M*NB if SIDE
75               = 'R', where NB is the optimal blocksize.  If LWORK = -1,  then
76               a  workspace  query is assumed; the routine only calculates the
77               optimal size of the WORK array, returns this value as the first
78               entry  of the WORK array, and no error message related to LWORK
79               is issued by XERBLA.
80
81       INFO    (output) INTEGER
82               = 0:  successful exit
83               < 0:  if INFO = -i, the i-th argument had an illegal value
84
85
86
87 LAPACK routine (version 3.2)    November 2008                       SORMTR(1)
Impressum