148 SUBROUTINE ztbtrs( UPLO, TRANS, DIAG, N, KD, NRHS, AB, LDAB, B,
156 CHARACTER DIAG, TRANS, UPLO
157 INTEGER INFO, KD, LDAB, LDB, N, NRHS
160 COMPLEX*16 AB( LDAB, * ), B( LDB, * )
167 parameter( zero = ( 0.0d+0, 0.0d+0 ) )
170 LOGICAL NOUNIT, UPPER
188 nounit = lsame( diag,
'N' )
189 upper = lsame( uplo,
'U' )
190 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
192 ELSE IF( .NOT.lsame( trans,
'N' ) .AND. .NOT.
193 $ lsame( trans,
'T' ) .AND.
194 $ .NOT.lsame( trans,
'C' ) )
THEN
196 ELSE IF( .NOT.nounit .AND. .NOT.lsame( diag,
'U' ) )
THEN
198 ELSE IF( n.LT.0 )
THEN
200 ELSE IF( kd.LT.0 )
THEN
202 ELSE IF( nrhs.LT.0 )
THEN
204 ELSE IF( ldab.LT.kd+1 )
THEN
206 ELSE IF( ldb.LT.max( 1, n ) )
THEN
210 CALL xerbla(
'ZTBTRS', -info )
224 IF( ab( kd+1, info ).EQ.zero )
229 IF( ab( 1, info ).EQ.zero )
239 CALL ztbsv( uplo, trans, diag, n, kd, ab, ldab, b( 1, j ),
subroutine ztbsv(uplo, trans, diag, n, k, a, lda, x, incx)
ZTBSV
subroutine ztbtrs(uplo, trans, diag, n, kd, nrhs, ab, ldab, b, ldb, info)
ZTBTRS