200 SUBROUTINE dchkql( DOTYPE, NM, MVAL, NN, NVAL, NNB, NBVAL, NXVAL,
201 $ nrhs, thresh, tsterr, nmax, a, af, aq, al, ac,
202 $ b, x, xact, tau, work, rwork, iwork, nout )
211 INTEGER nm, nmax, nn, nnb, nout, nrhs
212 DOUBLE PRECISION thresh
216 INTEGER iwork( * ), mval( * ), nbval( * ), nval( * ),
218 DOUBLE PRECISION a( * ), ac( * ), af( * ), al( * ), aq( * ),
219 $ b( * ), rwork( * ), tau( * ), work( * ),
227 parameter( ntests = 7 )
229 parameter( ntypes = 8 )
230 DOUBLE PRECISION zero
231 parameter( zero = 0.0d0 )
236 INTEGER i, ik, im, imat, in, inb, info, k, kl, ku, lda,
237 $ lwork, m, minmn, mode, n, nb, nerrs, nfail, nk,
239 DOUBLE PRECISION anorm, cndnum
242 INTEGER iseed( 4 ), iseedy( 4 ), kval( 4 )
243 DOUBLE PRECISION result( ntests )
259 common / infoc / infot, nunit, ok, lerr
260 common / srnamc / srnamt
263 DATA iseedy / 1988, 1989, 1990, 1991 /
269 path( 1: 1 ) =
'Double precision'
275 iseed( i ) = iseedy( i )
281 $ CALL
derrql( path, nout )
286 lwork = nmax*max( nmax, nrhs )
298 DO 50 imat = 1, ntypes
302 IF( .NOT.dotype( imat ) )
308 CALL
dlatb4( path, imat, m, n, type, kl, ku, anorm, mode,
312 CALL
dlatms( m, n, dist, iseed, type, rwork, mode,
313 $ cndnum, anorm, kl, ku,
'No packing', a, lda,
319 CALL
alaerh( path,
'DLATMS', info, 0,
' ', m, n, -1,
320 $ -1, -1, imat, nfail, nerrs, nout )
331 kval( 4 ) = minmn / 2
332 IF( minmn.EQ.0 )
THEN
334 ELSE IF( minmn.EQ.1 )
THEN
336 ELSE IF( minmn.LE.3 )
THEN
362 CALL
dqlt01( m, n, a, af, aq, al, lda, tau,
363 $ work, lwork, rwork, result( 1 ) )
364 ELSE IF( m.GE.n )
THEN
369 CALL
dqlt02( m, n, k, a, af, aq, al, lda, tau,
370 $ work, lwork, rwork, result( 1 ) )
377 CALL
dqlt03( m, n, k, af, ac, al, aq, lda, tau,
378 $ work, lwork, rwork, result( 3 ) )
385 IF( k.EQ.n .AND. inb.EQ.1 )
THEN
391 CALL
dlarhs( path,
'New',
'Full',
392 $
'No transpose', m, n, 0, 0,
393 $ nrhs, a, lda, xact, lda, b, lda,
396 CALL
dlacpy(
'Full', m, nrhs, b, lda, x,
399 CALL
dgeqls( m, n, nrhs, af, lda, tau, x,
400 $ lda, work, lwork, info )
405 $ CALL
alaerh( path,
'DGEQLS', info, 0,
' ',
406 $ m, n, nrhs, -1, nb, imat,
407 $ nfail, nerrs, nout )
409 CALL
dget02(
'No transpose', m, n, nrhs, a,
410 $ lda, x( m-n+1 ), lda, b, lda,
411 $ rwork, result( 7 ) )
420 IF( result( i ).GE.thresh )
THEN
421 IF( nfail.EQ.0 .AND. nerrs.EQ.0 )
422 $ CALL
alahd( nout, path )
423 WRITE( nout, fmt = 9999 )m, n, k, nb, nx,
424 $ imat, i, result( i )
437 CALL
alasum( path, nout, nfail, nrun, nerrs )
439 9999 format(
' M=', i5,
', N=', i5,
', K=', i5,
', NB=', i4,
', NX=',
440 $ i5,
', type ', i2,
', test(', i2,
')=', g12.5 )