LAPACK  3.10.0
LAPACK: Linear Algebra PACKage

◆ zerrtsqr()

subroutine zerrtsqr ( character*3  PATH,
integer  NUNIT 
)

ZERRTSQR

Purpose:
 ZERRTSQR tests the error exits for the ZOUBLE PRECISION routines
 that use the TSQR decomposition of a general matrix.
Parameters
[in]PATH
          PATH is CHARACTER*3
          The LAPACK path name for the routines to be tested.
[in]NUNIT
          NUNIT is INTEGER
          The unit number for output.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Zenver
NAG Ltd.

Definition at line 54 of file zerrtsqr.f.

55  IMPLICIT NONE
56 *
57 * -- LAPACK test routine --
58 * -- LAPACK is a software package provided by Univ. of Tennessee, --
59 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
60 *
61 * .. Scalar Arguments ..
62  CHARACTER*3 PATH
63  INTEGER NUNIT
64 * ..
65 *
66 * =====================================================================
67 *
68 * .. Parameters ..
69  INTEGER NMAX
70  parameter( nmax = 2 )
71 * ..
72 * .. Local Scalars ..
73  INTEGER I, INFO, J, NB
74 * ..
75 * .. Local Arrays ..
76  COMPLEX*16 A( NMAX, NMAX ), T( NMAX, NMAX ), W( NMAX ),
77  $ C( NMAX, NMAX ), TAU(NMAX)
78 * ..
79 * .. External Subroutines ..
80  EXTERNAL alaesm, chkxer, zgeqr,
81  $ zgemqr, zgelq, zgemlq
82 * ..
83 * .. Scalars in Common ..
84  LOGICAL LERR, OK
85  CHARACTER*32 SRNAMT
86  INTEGER INFOT, NOUT
87 * ..
88 * .. Common blocks ..
89  COMMON / infoc / infot, nout, ok, lerr
90  COMMON / srnamc / srnamt
91 * ..
92 * .. Intrinsic Functions ..
93  INTRINSIC dble
94 * ..
95 * .. Executable Statements ..
96 *
97  nout = nunit
98  WRITE( nout, fmt = * )
99 *
100 * Set the variables to innocuous values.
101 *
102  DO j = 1, nmax
103  DO i = 1, nmax
104  a( i, j ) = 1.d0 / dble( i+j )
105  c( i, j ) = 1.d0 / dble( i+j )
106  t( i, j ) = 1.d0 / dble( i+j )
107  END DO
108  w( j ) = 0.d0
109  END DO
110  ok = .true.
111 *
112 * Error exits for TS factorization
113 *
114 * ZGEQR
115 *
116  srnamt = 'ZGEQR'
117  infot = 1
118  CALL zgeqr( -1, 0, a, 1, tau, 1, w, 1, info )
119  CALL chkxer( 'ZGEQR', infot, nout, lerr, ok )
120  infot = 2
121  CALL zgeqr( 0, -1, a, 1, tau, 1, w, 1, info )
122  CALL chkxer( 'ZGEQR', infot, nout, lerr, ok )
123  infot = 4
124  CALL zgeqr( 1, 1, a, 0, tau, 1, w, 1, info )
125  CALL chkxer( 'ZGEQR', infot, nout, lerr, ok )
126  infot = 6
127  CALL zgeqr( 3, 2, a, 3, tau, 1, w, 1, info )
128  CALL chkxer( 'ZGEQR', infot, nout, lerr, ok )
129  infot = 8
130  CALL zgeqr( 3, 2, a, 3, tau, 8, w, 0, info )
131  CALL chkxer( 'ZGEQR', infot, nout, lerr, ok )
132 *
133 * ZGEMQR
134 *
135  tau(1)=1
136  tau(2)=1
137  srnamt = 'ZGEMQR'
138  nb=1
139  infot = 1
140  CALL zgemqr( '/', 'N', 0, 0, 0, a, 1, tau, 1, c, 1, w, 1,info)
141  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
142  infot = 2
143  CALL zgemqr( 'L', '/', 0, 0, 0, a, 1, tau, 1, c, 1, w, 1,info)
144  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
145  infot = 3
146  CALL zgemqr( 'L', 'N', -1, 0, 0, a, 1, tau, 1, c, 1, w,1,info)
147  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
148  infot = 4
149  CALL zgemqr( 'L', 'N', 0, -1, 0, a, 1, tau, 1, c, 1, w,1,info)
150  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
151  infot = 5
152  CALL zgemqr( 'L', 'N', 0, 0, -1, a, 1, tau, 1, c, 1, w,1,info)
153  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
154  infot = 5
155  CALL zgemqr( 'R', 'N', 0, 0, -1, a, 1, tau, 1, c, 1, w,1,info)
156  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
157  infot = 7
158  CALL zgemqr( 'L', 'N', 2, 1, 0, a, 0, tau, 1, c, 1, w, 1,info)
159  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
160  infot = 9
161  CALL zgemqr( 'R', 'N', 2, 2, 1, a, 2, tau, 0, c, 1, w, 1,info)
162  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
163  infot = 9
164  CALL zgemqr( 'L', 'N', 2, 2, 1, a, 2, tau, 0, c, 1, w, 1,info)
165  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
166  infot = 11
167  CALL zgemqr( 'L', 'N', 2, 1, 1, a, 2, tau, 6, c, 0, w, 1,info)
168  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
169  infot = 13
170  CALL zgemqr( 'L', 'N', 2, 2, 1, a, 2, tau, 6, c, 2, w, 0,info)
171  CALL chkxer( 'ZGEMQR', infot, nout, lerr, ok )
172 *
173 * ZGELQ
174 *
175  srnamt = 'ZGELQ'
176  infot = 1
177  CALL zgelq( -1, 0, a, 1, tau, 1, w, 1, info )
178  CALL chkxer( 'ZGELQ', infot, nout, lerr, ok )
179  infot = 2
180  CALL zgelq( 0, -1, a, 1, tau, 1, w, 1, info )
181  CALL chkxer( 'ZGELQ', infot, nout, lerr, ok )
182  infot = 4
183  CALL zgelq( 1, 1, a, 0, tau, 1, w, 1, info )
184  CALL chkxer( 'ZGELQ', infot, nout, lerr, ok )
185  infot = 6
186  CALL zgelq( 2, 3, a, 3, tau, 1, w, 1, info )
187  CALL chkxer( 'ZGELQ', infot, nout, lerr, ok )
188  infot = 8
189  CALL zgelq( 2, 3, a, 3, tau, 8, w, 0, info )
190  CALL chkxer( 'ZGELQ', infot, nout, lerr, ok )
191 *
192 * ZGEMLQ
193 *
194  tau(1)=1
195  tau(2)=1
196  srnamt = 'ZGEMLQ'
197  nb=1
198  infot = 1
199  CALL zgemlq( '/', 'N', 0, 0, 0, a, 1, tau, 1, c, 1, w, 1,info)
200  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
201  infot = 2
202  CALL zgemlq( 'L', '/', 0, 0, 0, a, 1, tau, 1, c, 1, w, 1,info)
203  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
204  infot = 3
205  CALL zgemlq( 'L', 'N', -1, 0, 0, a, 1, tau, 1, c, 1, w,1,info)
206  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
207  infot = 4
208  CALL zgemlq( 'L', 'N', 0, -1, 0, a, 1, tau, 1, c, 1, w,1,info)
209  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
210  infot = 5
211  CALL zgemlq( 'L', 'N', 0, 0, -1, a, 1, tau, 1, c, 1, w,1,info)
212  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
213  infot = 5
214  CALL zgemlq( 'R', 'N', 0, 0, -1, a, 1, tau, 1, c, 1, w,1,info)
215  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
216  infot = 7
217  CALL zgemlq( 'L', 'N', 1, 2, 0, a, 0, tau, 1, c, 1, w, 1,info)
218  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
219  infot = 9
220  CALL zgemlq( 'R', 'N', 2, 2, 1, a, 1, tau, 0, c, 1, w, 1,info)
221  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
222  infot = 9
223  CALL zgemlq( 'L', 'N', 2, 2, 1, a, 1, tau, 0, c, 1, w, 1,info)
224  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
225  infot = 11
226  CALL zgemlq( 'L', 'N', 1, 2, 1, a, 1, tau, 6, c, 0, w, 1,info)
227  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
228  infot = 13
229  CALL zgemlq( 'L', 'N', 2, 2, 1, a, 2, tau, 6, c, 2, w, 0,info)
230  CALL chkxer( 'ZGEMLQ', infot, nout, lerr, ok )
231 *
232 * Print a summary line.
233 *
234  CALL alaesm( path, ok, nout )
235 *
236  RETURN
237 *
238 * End of ZERRTSQR
239 *
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
Definition: cblat2.f:3196
subroutine alaesm(PATH, OK, NOUT)
ALAESM
Definition: alaesm.f:63
subroutine zgelq(M, N, A, LDA, T, TSIZE, WORK, LWORK, INFO)
ZGELQ
Definition: zgelq.f:172
subroutine zgemlq(SIDE, TRANS, M, N, K, A, LDA, T, TSIZE, C, LDC, WORK, LWORK, INFO)
ZGEMLQ
Definition: zgemlq.f:169
subroutine zgemqr(SIDE, TRANS, M, N, K, A, LDA, T, TSIZE, C, LDC, WORK, LWORK, INFO)
ZGEMQR
Definition: zgemqr.f:172
subroutine zgeqr(M, N, A, LDA, T, TSIZE, WORK, LWORK, INFO)
ZGEQR
Definition: zgeqr.f:174
Here is the call graph for this function:
Here is the caller graph for this function: