3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
11 * SUBROUTINE SCHKQRT( THRESH, TSTERR, NM, MVAL, NN, NVAL, NNB,
14 * .. Scalar Arguments ..
16 * INTEGER NM, NN, NNB, NOUT
25 *> SCHKQRT tests SGEQRT and SGEMQRT.
34 *> The threshold value for the test ratios. A result is
35 *> included in the output file if RESULT >= THRESH. To have
36 *> every test ratio printed, use THRESH = 0.
42 *> Flag that indicates whether error exits are to be tested.
48 *> The number of values of M contained in the vector MVAL.
53 *> MVAL is INTEGER array, dimension (NM)
54 *> The values of the matrix row dimension M.
60 *> The number of values of N contained in the vector NVAL.
65 *> NVAL is INTEGER array, dimension (NN)
66 *> The values of the matrix column dimension N.
72 *> The number of values of NB contained in the vector NBVAL.
77 *> NBVAL is INTEGER array, dimension (NBVAL)
78 *> The values of the blocksize NB.
84 *> The unit number for output.
90 *> \author Univ. of Tennessee
91 *> \author Univ. of California Berkeley
92 *> \author Univ. of Colorado Denver
95 *> \date November 2011
97 *> \ingroup single_lin
99 * =====================================================================
100 SUBROUTINE SCHKQRT( THRESH, TSTERR, NM, MVAL, NN, NVAL, NNB,
104 * -- LAPACK test routine (version 3.4.0) --
105 * -- LAPACK is a software package provided by Univ. of Tennessee, --
106 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
109 * .. Scalar Arguments ..
111 INTEGER NM, NN, NNB, NOUT
114 * .. Array Arguments ..
115 INTEGER MVAL( * ), NBVAL( * ), NVAL( * )
117 * =====================================================================
121 PARAMETER ( NTESTS = 6 )
123 * .. Local Scalars ..
125 INTEGER I, J, K, T, M, N, NB, NFAIL, NERRS, NRUN,
129 REAL RESULT( NTESTS )
131 * .. External Subroutines ..
132 EXTERNAL ALAERH, ALAHD, ALASUM, SERRQRT, SQRT04
134 * .. Scalars in Common ..
139 * .. Common blocks ..
140 COMMON / INFOC / INFOT, NUNIT, OK, LERR
141 COMMON / SRNAMC / SRNAMT
143 * .. Executable Statements ..
145 * Initialize constants
153 * Test the error exits
155 IF( TSTERR ) CALL SERRQRT( PATH, NOUT )
158 * Do for each value of M in MVAL.
163 * Do for each value of N in NVAL.
168 * Do for each possible value of NB
173 IF( (NB.LE.MINMN).AND.(NB.GT.0) ) THEN
175 * Test SGEQRT and SGEMQRT
177 CALL SQRT04( M, N, NB, RESULT )
179 * Print information about the tests that did not
180 * pass the threshold.
183 IF( RESULT( T ).GE.THRESH ) THEN
184 IF( NFAIL.EQ.0 .AND. NERRS.EQ.0 )
185 $ CALL ALAHD( NOUT, PATH )
186 WRITE( NOUT, FMT = 9999 )M, N, NB,
197 * Print a summary of the results.
199 CALL ALASUM( PATH, NOUT, NFAIL, NRUN, NERRS )
201 9999 FORMAT( ' M=', I5, ', N=', I5, ', NB=', I4,
202 $ ' test(', I2, ')=', G12.5 )