70 parameter( nmax = 4, lw = nmax*( nmax+2 ) )
72 parameter( one = 1.0e0, zero = 0.0e0 )
75 INTEGER I, IFST, ILST, INFO, J, M, NT
80 REAL RW( LW ), S( NMAX ), SEP( NMAX )
81 COMPLEX A( NMAX, NMAX ), B( NMAX, ),
82 $ C( NMAX, NMAX ), WORK( LW ), X( NMAX )
93 COMMON / infoc / infot, nout, ok, lerr
94 COMMON / srnamc / srnamt
119 CALL ctrsyl(
'X',
'N', 1, 0, 0, a, 1, b, 1, c, 1, scale, info )
120 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
122 CALL ctrsyl(
'N',
'X', 1, 0, 0, a, 1, b, 1, c, 1, scale, info )
123 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
125 CALL ctrsyl(
'N',
'N', 0, 0, 0, a, 1, b, 1, c, 1, scale, info )
126 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
128 CALL ctrsyl(
'N',
'N', 1, -1, 0, a, 1, b, 1, c, 1, scale, info
129 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
131 CALL ctrsyl(
'N',
'N', 1, 0, -1, a, 1, b, 1, c, 1, scale, info )
132 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
134 CALL ctrsyl(
'N',
'N', 1, 2, 0, a, 1, b, 1, c, 2, scale, info )
135 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
137 CALL ctrsyl(
'N',
'N', 1, 0, 2, a, 1, b, 1, c, 1, scale, info )
138 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
140 CALL ctrsyl(
'N',
'N', 1, 2, 0, a, 2, b, 1, c, 1, scale, info )
141 CALL chkxer(
'CTRSYL', infot, nout, lerr, ok )
150 CALL ctrexc(
'X', 1, a, 1, b, 1, ifst, ilst, info )
151 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
153 CALL ctrexc(
'N', -1, a, 1, b, 1, ifst, ilst, info )
154 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
157 CALL ctrexc(
'N', 2, a, 1, b, 1, ifst, ilst, info )
158 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
160 CALL ctrexc(
'V', 2, a, 2, b, 1, ifst, ilst, info )
161 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
165 CALL ctrexc(
'V', 1, a, 1, b, 1, ifst, ilst, info )
166 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
169 CALL ctrexc(
'V', 1, a, 1, b, 1, ifst, ilst, info )
170 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
174 CALL ctrexc(
'V', 1, a, 1, b, 1, ifst, ilst, info )
175 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
178 CALL ctrexc(
'V', 1, a, 1, b, 1, ifst, ilst, info )
179 CALL chkxer(
'CTREXC', infot, nout, lerr, ok )
186 CALL ctrsna(
'X',
'A', sel, 0, a, 1, b, 1, c, 1, s, sep, 1, m,
187 $ work, 1, rw, info )
188 CALL chkxer(
'CTRSNA', infot, nout, lerr, ok )
190 CALL ctrsna( 'b
', 'x
', SEL, 0, A, 1, B, 1, C, 1, S, SEP, 1, M,
191 $ WORK, 1, RW, INFO )
192 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
194 CALL CTRSNA( 'b
', 'a
', SEL, -1, A, 1, B, 1, C, 1, S, SEP, 1, M,
195 $ WORK, 1, RW, INFO )
196 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
198 CALL CTRSNA( 'v
', 'a
', SEL, 2, A, 1, B, 1, C, 1, S, SEP, 2, M,
199 $ WORK, 2, RW, INFO )
200 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
202 CALL CTRSNA( 'b
', 'a
', SEL, 2, A, 2, B, 1, C, 2, S, SEP, 2, M,
203 $ WORK, 2, RW, INFO )
204 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
206 CALL CTRSNA( 'b
', 'a
', SEL, 2, A, 2, B, 2, C, 1, S, SEP, 2, M,
207 $ WORK, 2, RW, INFO )
208 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
210 CALL CTRSNA( 'b
', 'a
', SEL, 1, A, 1, B, 1, C, 1, S, SEP, 0, M,
211 $ WORK, 1, RW, INFO )
212 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
214 CALL CTRSNA( 'b
', 's
', SEL, 2, A, 2, B, 2, C, 2, S, SEP, 1, M,
215 $ WORK, 1, RW, INFO )
216 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
218 CALL CTRSNA( 'b
', 'a
', SEL, 2, A, 2, B, 2, C, 2, S, SEP, 2, M,
219 $ WORK, 1, RW, INFO )
220 CALL CHKXER( 'ctrsna', INFOT, NOUT, LERR, OK )
228 CALL CTRSEN( 'x
', 'n
', SEL, 0, A, 1, B, 1, X, M, S( 1 ), SEP( 1 ),
230 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
232 CALL CTRSEN( 'n
', 'x
', SEL, 0, A, 1, B, 1, X, M, S( 1 ), SEP( 1 ),
234 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
236 CALL CTRSEN( 'n
', 'n
', SEL, -1, A, 1, B, 1, X, M, S( 1 ),
237 $ SEP( 1 ), WORK, 1, INFO )
238 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
240 CALL CTRSEN( 'n
', 'n
', SEL, 2, A, 1, B, 1, X, M, S( 1 ), SEP( 1 ),
242 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
244 CALL CTRSEN( 'n
', 'v
', SEL, 2, A, 2, B, 1, X, M, S( 1 ), SEP( 1 ),
246 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
248 CALL CTRSEN( 'n
', 'v
', SEL, 2, A, 2, B, 2, X, M, S( 1 ), SEP( 1 ),
250 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
252 CALL CTRSEN( 'e
', 'v
', SEL, 3, A, 3, B, 3, X, M, S( 1 ), SEP( 1 ),
254 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
256 CALL CTRSEN( 'v
', 'v
', SEL, 3, A, 3, B, 3, X, M, S( 1 ), SEP( 1 ),
258 CALL CHKXER( 'ctrsen', INFOT, NOUT, LERR, OK )
264 WRITE( NOUT, FMT = 9999 )PATH, NT
266 WRITE( NOUT, FMT = 9998 )PATH
269 9999 FORMAT( 1X, A3, ' routines passed
the tests of
the error exits(
',
270 $ I3, ' tests done)
' )
271 9998 FORMAT( ' ***
', A3, ' routines failed
the tests of
the error
',