1STZRZF(1)                LAPACK routine (version 3.1)                STZRZF(1)
2
3
4

NAME

6       STZRZF  -  the M-by-N ( M<=N ) real upper trapezoidal matrix A to upper
7       triangular form by means of orthogonal transformations
8

SYNOPSIS

10       SUBROUTINE STZRZF( M, N, A, LDA, TAU, WORK, LWORK, INFO )
11
12           INTEGER        INFO, LDA, LWORK, M, N
13
14           REAL           A( LDA, * ), TAU( * ), WORK( * )
15

PURPOSE

17       STZRZF reduces the M-by-N ( M<=N ) real upper trapezoidal matrix  A  to
18       upper triangular form by means of orthogonal transformations.
19
20       The upper trapezoidal matrix A is factored as
21
22          A = ( R  0 ) * Z,
23
24       where  Z is an N-by-N orthogonal matrix and R is an M-by-M upper trian‐
25       gular matrix.
26
27

ARGUMENTS

29       M       (input) INTEGER
30               The number of rows of the matrix A.  M >= 0.
31
32       N       (input) INTEGER
33               The number of columns of the matrix A.  N >= M.
34
35       A       (input/output) REAL array, dimension (LDA,N)
36               On entry, the leading M-by-N  upper  trapezoidal  part  of  the
37               array A must contain the matrix to be factorized.  On exit, the
38               leading M-by-M upper triangular part of A  contains  the  upper
39               triangular  matrix R, and elements M+1 to N of the first M rows
40               of A, with the array TAU, represent the orthogonal matrix Z  as
41               a product of M elementary reflectors.
42
43       LDA     (input) INTEGER
44               The leading dimension of the array A.  LDA >= max(1,M).
45
46       TAU     (output) REAL array, dimension (M)
47               The scalar factors of the elementary reflectors.
48
49       WORK    (workspace/output) REAL array, dimension (MAX(1,LWORK))
50               On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
51
52       LWORK   (input) INTEGER
53               The dimension of the array WORK.  LWORK >= max(1,M).  For opti‐
54               mum performance LWORK >= M*NB, where NB is the  optimal  block‐
55               size.
56
57               If  LWORK  = -1, then a workspace query is assumed; the routine
58               only calculates the optimal size of  the  WORK  array,  returns
59               this  value  as the first entry of the WORK array, and no error
60               message related to LWORK is issued by XERBLA.
61
62       INFO    (output) INTEGER
63               = 0:  successful exit
64               < 0:  if INFO = -i, the i-th argument had an illegal value
65

FURTHER DETAILS

67       Based on contributions by
68         A. Petitet, Computer Science Dept., Univ. of Tenn., Knoxville, USA
69
70       The factorization is obtained by Householder's method.  The kth  trans‐
71       formation matrix, Z( k ), which is used to introduce zeros into the ( m
72       - k + 1 )th row of A, is given in the form
73
74          Z( k ) = ( I     0   ),
75                   ( 0  T( k ) )
76
77       where
78
79          T( k ) = I - tau*u( k )*u( k )',   u( k ) = (   1    ),
80                                                      (   0    )
81                                                      ( z( k ) )
82
83       tau is a scalar and z( k ) is an ( n - m ) element vector.  tau and  z(
84       k ) are chosen to annihilate the elements of the kth row of X.
85
86       The  scalar tau is returned in the kth element of TAU and the vector u(
87       k ) in the kth row of A, such that the elements of z( k ) are in  a( k,
88       m  +  1  ), ..., a( k, n ). The elements of R are returned in the upper
89       triangular part of A.
90
91       Z is given by
92
93          Z =  Z( 1 ) * Z( 2 ) * ... * Z( m ).
94
95
96
97
98 LAPACK routine (version 3.1)    November 2006                       STZRZF(1)
Impressum