1*> \brief \b CERRQRT 2* 3* =========== DOCUMENTATION =========== 4* 5* Online html documentation available at 6* http://www.netlib.org/lapack/explore-html/ 7* 8* Definition: 9* =========== 10* 11* SUBROUTINE CERRQRT( PATH, NUNIT ) 12* 13* .. Scalar Arguments .. 14* CHARACTER*3 PATH 15* INTEGER NUNIT 16* .. 17* 18* 19*> \par Purpose: 20* ============= 21*> 22*> \verbatim 23*> 24*> CERRQRT tests the error exits for the COMPLEX routines 25*> that use the QRT decomposition of a general matrix. 26*> \endverbatim 27* 28* Arguments: 29* ========== 30* 31*> \param[in] PATH 32*> \verbatim 33*> PATH is CHARACTER*3 34*> The LAPACK path name for the routines to be tested. 35*> \endverbatim 36*> 37*> \param[in] NUNIT 38*> \verbatim 39*> NUNIT is INTEGER 40*> The unit number for output. 41*> \endverbatim 42* 43* Authors: 44* ======== 45* 46*> \author Univ. of Tennessee 47*> \author Univ. of California Berkeley 48*> \author Univ. of Colorado Denver 49*> \author NAG Ltd. 50* 51*> \ingroup complex_lin 52* 53* ===================================================================== 54 SUBROUTINE CERRQRT( PATH, NUNIT ) 55 IMPLICIT NONE 56* 57* -- LAPACK test routine -- 58* -- LAPACK is a software package provided by Univ. of Tennessee, -- 59* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- 60* 61* .. Scalar Arguments .. 62 CHARACTER*3 PATH 63 INTEGER NUNIT 64* .. 65* 66* ===================================================================== 67* 68* .. Parameters .. 69 INTEGER NMAX 70 PARAMETER ( NMAX = 2 ) 71* .. 72* .. Local Scalars .. 73 INTEGER I, INFO, J 74* .. 75* .. Local Arrays .. 76 COMPLEX A( NMAX, NMAX ), T( NMAX, NMAX ), W( NMAX ), 77 $ C( NMAX, NMAX ) 78* .. 79* .. External Subroutines .. 80 EXTERNAL ALAESM, CHKXER, CGEQRT2, CGEQRT3, CGEQRT, 81 $ CGEMQRT 82* .. 83* .. Scalars in Common .. 84 LOGICAL LERR, OK 85 CHARACTER*32 SRNAMT 86 INTEGER INFOT, NOUT 87* .. 88* .. Common blocks .. 89 COMMON / INFOC / INFOT, NOUT, OK, LERR 90 COMMON / SRNAMC / SRNAMT 91* .. 92* .. Intrinsic Functions .. 93 INTRINSIC FLOAT, CMPLX 94* .. 95* .. Executable Statements .. 96* 97 NOUT = NUNIT 98 WRITE( NOUT, FMT = * ) 99* 100* Set the variables to innocuous values. 101* 102 DO J = 1, NMAX 103 DO I = 1, NMAX 104 A( I, J ) = 1.0 / CMPLX( FLOAT(I+J), 0.0 ) 105 C( I, J ) = 1.0 / CMPLX( FLOAT(I+J), 0.0 ) 106 T( I, J ) = 1.0 / CMPLX( FLOAT(I+J), 0.0 ) 107 END DO 108 W( J ) = 0.0 109 END DO 110 OK = .TRUE. 111* 112* Error exits for QRT factorization 113* 114* CGEQRT 115* 116 SRNAMT = 'CGEQRT' 117 INFOT = 1 118 CALL CGEQRT( -1, 0, 1, A, 1, T, 1, W, INFO ) 119 CALL CHKXER( 'CGEQRT', INFOT, NOUT, LERR, OK ) 120 INFOT = 2 121 CALL CGEQRT( 0, -1, 1, A, 1, T, 1, W, INFO ) 122 CALL CHKXER( 'CGEQRT', INFOT, NOUT, LERR, OK ) 123 INFOT = 3 124 CALL CGEQRT( 0, 0, 0, A, 1, T, 1, W, INFO ) 125 CALL CHKXER( 'CGEQRT', INFOT, NOUT, LERR, OK ) 126 INFOT = 5 127 CALL CGEQRT( 2, 1, 1, A, 1, T, 1, W, INFO ) 128 CALL CHKXER( 'CGEQRT', INFOT, NOUT, LERR, OK ) 129 INFOT = 7 130 CALL CGEQRT( 2, 2, 2, A, 2, T, 1, W, INFO ) 131 CALL CHKXER( 'CGEQRT', INFOT, NOUT, LERR, OK ) 132* 133* CGEQRT2 134* 135 SRNAMT = 'CGEQRT2' 136 INFOT = 1 137 CALL CGEQRT2( -1, 0, A, 1, T, 1, INFO ) 138 CALL CHKXER( 'CGEQRT2', INFOT, NOUT, LERR, OK ) 139 INFOT = 2 140 CALL CGEQRT2( 0, -1, A, 1, T, 1, INFO ) 141 CALL CHKXER( 'CGEQRT2', INFOT, NOUT, LERR, OK ) 142 INFOT = 4 143 CALL CGEQRT2( 2, 1, A, 1, T, 1, INFO ) 144 CALL CHKXER( 'CGEQRT2', INFOT, NOUT, LERR, OK ) 145 INFOT = 6 146 CALL CGEQRT2( 2, 2, A, 2, T, 1, INFO ) 147 CALL CHKXER( 'CGEQRT2', INFOT, NOUT, LERR, OK ) 148* 149* CGEQRT3 150* 151 SRNAMT = 'CGEQRT3' 152 INFOT = 1 153 CALL CGEQRT3( -1, 0, A, 1, T, 1, INFO ) 154 CALL CHKXER( 'CGEQRT3', INFOT, NOUT, LERR, OK ) 155 INFOT = 2 156 CALL CGEQRT3( 0, -1, A, 1, T, 1, INFO ) 157 CALL CHKXER( 'CGEQRT3', INFOT, NOUT, LERR, OK ) 158 INFOT = 4 159 CALL CGEQRT3( 2, 1, A, 1, T, 1, INFO ) 160 CALL CHKXER( 'CGEQRT3', INFOT, NOUT, LERR, OK ) 161 INFOT = 6 162 CALL CGEQRT3( 2, 2, A, 2, T, 1, INFO ) 163 CALL CHKXER( 'CGEQRT3', INFOT, NOUT, LERR, OK ) 164* 165* CGEMQRT 166* 167 SRNAMT = 'CGEMQRT' 168 INFOT = 1 169 CALL CGEMQRT( '/', 'N', 0, 0, 0, 1, A, 1, T, 1, C, 1, W, INFO ) 170 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 171 INFOT = 2 172 CALL CGEMQRT( 'L', '/', 0, 0, 0, 1, A, 1, T, 1, C, 1, W, INFO ) 173 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 174 INFOT = 3 175 CALL CGEMQRT( 'L', 'N', -1, 0, 0, 1, A, 1, T, 1, C, 1, W, INFO ) 176 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 177 INFOT = 4 178 CALL CGEMQRT( 'L', 'N', 0, -1, 0, 1, A, 1, T, 1, C, 1, W, INFO ) 179 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 180 INFOT = 5 181 CALL CGEMQRT( 'L', 'N', 0, 0, -1, 1, A, 1, T, 1, C, 1, W, INFO ) 182 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 183 INFOT = 5 184 CALL CGEMQRT( 'R', 'N', 0, 0, -1, 1, A, 1, T, 1, C, 1, W, INFO ) 185 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 186 INFOT = 6 187 CALL CGEMQRT( 'L', 'N', 0, 0, 0, 0, A, 1, T, 1, C, 1, W, INFO ) 188 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 189 INFOT = 8 190 CALL CGEMQRT( 'R', 'N', 1, 2, 1, 1, A, 1, T, 1, C, 1, W, INFO ) 191 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 192 INFOT = 8 193 CALL CGEMQRT( 'L', 'N', 2, 1, 1, 1, A, 1, T, 1, C, 1, W, INFO ) 194 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 195 INFOT = 10 196 CALL CGEMQRT( 'R', 'N', 1, 1, 1, 1, A, 1, T, 0, C, 1, W, INFO ) 197 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 198 INFOT = 12 199 CALL CGEMQRT( 'L', 'N', 1, 1, 1, 1, A, 1, T, 1, C, 0, W, INFO ) 200 CALL CHKXER( 'CGEMQRT', INFOT, NOUT, LERR, OK ) 201* 202* Print a summary line. 203* 204 CALL ALAESM( PATH, OK, NOUT ) 205* 206 RETURN 207* 208* End of CERRQRT 209* 210 END 211