LAPACK  3.8.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.
Date
December 2016

Definition at line 57 of file zerrtsqr.f.

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