195 SUBROUTINE dchklq( DOTYPE, NM, MVAL, NN, NVAL, NNB, NBVAL, NXVAL,
196 $ nrhs, thresh, tsterr, nmax, a, af, aq, al, ac,
197 $ b, x, xact, tau, work, rwork, nout )
206 INTEGER nm, nmax, nn, nnb, nout, nrhs
207 DOUBLE PRECISION thresh
211 INTEGER mval( * ), nbval( * ), nval( * ),
213 DOUBLE PRECISION a( * ), ac( * ), af( * ), al( * ), aq( * ),
214 $ b( * ), rwork( * ), tau( * ), work( * ),
222 parameter( ntests = 7 )
224 parameter( ntypes = 8 )
225 DOUBLE PRECISION zero
226 parameter( zero = 0.0d0 )
231 INTEGER i, ik, im, imat, in, inb, info, k, kl, ku, lda,
232 $ lwork, m, minmn, mode, n, nb, nerrs, nfail, nk,
234 DOUBLE PRECISION anorm, cndnum
237 INTEGER iseed( 4 ), iseedy( 4 ), kval( 4 )
238 DOUBLE PRECISION result( ntests )
254 common / infoc / infot, nunit, ok, lerr
255 common / srnamc / srnamt
258 DATA iseedy / 1988, 1989, 1990, 1991 /
264 path( 1: 1 ) =
'Double precision'
270 iseed( i ) = iseedy( i )
276 $ CALL
derrlq( path, nout )
281 lwork = nmax*max( nmax, nrhs )
293 DO 50 imat = 1, ntypes
297 IF( .NOT.dotype( imat ) )
303 CALL
dlatb4( path, imat, m, n, type, kl, ku, anorm, mode,
307 CALL
dlatms( m, n, dist, iseed, type, rwork, mode,
308 $ cndnum, anorm, kl, ku,
'No packing', a, lda,
314 CALL
alaerh( path,
'DLATMS', info, 0,
' ', m, n, -1,
315 $ -1, -1, imat, nfail, nerrs, nout )
326 kval( 4 ) = minmn / 2
327 IF( minmn.EQ.0 )
THEN
329 ELSE IF( minmn.EQ.1 )
THEN
331 ELSE IF( minmn.LE.3 )
THEN
357 CALL
dlqt01( m, n, a, af, aq, al, lda, tau,
358 $ work, lwork, rwork, result( 1 ) )
359 ELSE IF( m.LE.n )
THEN
364 CALL
dlqt02( m, n, k, a, af, aq, al, lda, tau,
365 $ work, lwork, rwork, result( 1 ) )
375 CALL
dlqt03( m, n, k, af, ac, al, aq, lda, tau,
376 $ work, lwork, rwork, result( 3 ) )
383 IF( k.EQ.m .AND. inb.EQ.1 )
THEN
389 CALL
dlarhs( path,
'New',
'Full',
390 $
'No transpose', m, n, 0, 0,
391 $ nrhs, a, lda, xact, lda, b, lda,
394 CALL
dlacpy(
'Full', m, nrhs, b, lda, x,
397 CALL
dgelqs( m, n, nrhs, af, lda, tau, x,
398 $ lda, work, lwork, info )
403 $ CALL
alaerh( path,
'DGELQS', info, 0,
' ',
404 $ m, n, nrhs, -1, nb, imat,
405 $ nfail, nerrs, nout )
407 CALL
dget02(
'No transpose', m, n, nrhs, a,
408 $ lda, x, lda, b, lda, rwork,
425 IF( result( i ).GE.thresh )
THEN
426 IF( nfail.EQ.0 .AND. nerrs.EQ.0 )
427 $ CALL
alahd( nout, path )
428 WRITE( nout, fmt = 9999 )m, n, k, nb, nx,
429 $ imat, i, result( i )
442 CALL
alasum( path, nout, nfail, nrun, nerrs )
444 9999 format(
' M=', i5,
', N=', i5,
', K=', i5,
', NB=', i4,
', NX=',
445 $ i5,
', type ', i2,
', test(', i2,
')=', g12.5 )