157 SUBROUTINE cchkq3( DOTYPE, NM, MVAL, NN, NVAL, NNB, NBVAL, NXVAL,
158 $ thresh, a, copya, s, tau, work, rwork,
167 INTEGER nm, nn, nnb, nout
172 INTEGER iwork( * ), mval( * ), nbval( * ), nval( * ),
174 REAL s( * ), rwork( * )
175 COMPLEX a( * ), copya( * ), tau( * ), work( * )
182 parameter( ntypes = 6 )
184 parameter( ntests = 3 )
187 parameter( one = 1.0e+0, zero = 0.0e+0,
188 $ czero = ( 0.0e+0, 0.0e+0 ) )
192 INTEGER i, ihigh, ilow, im, imode, in, inb, info,
193 $ istep, k, lda, lw, lwork, m, mnmin, mode, n,
194 $ nb, nerrs, nfail, nrun, nx
198 INTEGER iseed( 4 ), iseedy( 4 )
199 REAL result( ntests )
215 INTEGER infot, iounit
218 common / infoc / infot, iounit, ok, lerr
219 common / srnamc / srnamt
222 DATA iseedy / 1988, 1989, 1990, 1991 /
228 path( 1: 1 ) =
'Complex precision'
234 iseed( i ) = iseedy( i )
252 lwork = max( 1, m*max( m, n )+4*mnmin+max( m, n ) )
254 DO 70 imode = 1, ntypes
255 IF( .NOT.dotype( imode ) )
276 IF( imode.EQ.1 )
THEN
277 CALL
claset(
'Full', m, n, czero, czero, copya, lda )
282 CALL
clatms( m, n,
'Uniform', iseed,
'Nonsymm', s,
283 $ mode, one / eps, one, m, n,
'No packing',
284 $ copya, lda, work, info )
285 IF( imode.GE.4 )
THEN
286 IF( imode.EQ.4 )
THEN
289 ihigh = max( 1, n / 2 )
290 ELSE IF( imode.EQ.5 )
THEN
291 ilow = max( 1, n / 2 )
294 ELSE IF( imode.EQ.6 )
THEN
299 DO 40 i = ilow, ihigh, istep
303 CALL
slaord(
'Decreasing', mnmin, s, 1 )
318 CALL
clacpy(
'All', m, n, copya, lda, a, lda )
319 CALL
icopy( n, iwork( 1 ), 1, iwork( n+1 ), 1 )
326 CALL
cgeqp3( m, n, a, lda, iwork( n+1 ), tau, work,
331 result( 1 ) =
cqrt12( m, n, a, lda, s, work,
336 result( 2 ) =
cqpt01( m, n, mnmin, copya, a, lda, tau,
337 $ iwork( n+1 ), work, lwork )
341 result( 3 ) =
cqrt11( m, mnmin, a, lda, tau, work,
348 IF( result( k ).GE.thresh )
THEN
349 IF( nfail.EQ.0 .AND. nerrs.EQ.0 )
350 $ CALL
alahd( nout, path )
351 WRITE( nout, fmt = 9999 )
'CGEQP3', m, n, nb,
352 $ imode, k, result( k )
365 CALL
alasum( path, nout, nfail, nrun, nerrs )
367 9999 format( 1x, a,
' M =', i5,
', N =', i5,
', NB =', i4,
', type ',
368 $ i2,
', test ', i2,
', ratio =', g12.5 )