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 )
202 REAL CQPT01, CQRT11, CQRT12, SLAMCH
203 EXTERNAL cqpt01, cqrt11, cqrt12, slamch
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 )
236 eps = slamch(
'Epsilon' )
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 )
subroutine alahd(IOUNIT, PATH)
ALAHD
subroutine icopy(N, SX, INCX, SY, INCY)
ICOPY
subroutine xlaenv(ISPEC, NVALUE)
XLAENV
subroutine claset(UPLO, M, N, ALPHA, BETA, A, LDA)
CLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values...
subroutine cgeqp3(M, N, A, LDA, JPVT, TAU, WORK, LWORK, RWORK, INFO)
CGEQP3
subroutine clatms(M, N, DIST, ISEED, SYM, D, MODE, COND, DMAX, KL, KU, PACK, A, LDA, WORK, INFO)
CLATMS
subroutine slaord(JOB, N, X, INCX)
SLAORD
subroutine clacpy(UPLO, M, N, A, LDA, B, LDB)
CLACPY copies all or part of one two-dimensional array to another.
subroutine cchkq3(DOTYPE, NM, MVAL, NN, NVAL, NNB, NBVAL, NXVAL, THRESH, A, COPYA, S, TAU, WORK, RWORK, IWORK, NOUT)
CCHKQ3
subroutine alasum(TYPE, NOUT, NFAIL, NRUN, NERRS)
ALASUM