131 SUBROUTINE ztptrs( UPLO, TRANS, DIAG, N, NRHS, AP, B, LDB, INFO )
139 CHARACTER DIAG, TRANS, UPLO
140 INTEGER INFO, LDB, N, NRHS
143 COMPLEX*16 AP( * ), B( ldb, * )
150 parameter ( zero = ( 0.0d+0, 0.0d+0 ) )
153 LOGICAL NOUNIT, UPPER
171 upper = lsame( uplo,
'U' )
172 nounit = lsame( diag,
'N' )
173 IF( .NOT.upper .AND. .NOT.lsame( uplo,
'L' ) )
THEN
175 ELSE IF( .NOT.lsame( trans,
'N' ) .AND. .NOT.
176 $ lsame( trans,
'T' ) .AND. .NOT.lsame( trans,
'C' ) )
THEN
178 ELSE IF( .NOT.nounit .AND. .NOT.lsame( diag,
'U' ) )
THEN
180 ELSE IF( n.LT.0 )
THEN
182 ELSE IF( nrhs.LT.0 )
THEN
184 ELSE IF( ldb.LT.max( 1, n ) )
THEN
188 CALL xerbla(
'ZTPTRS', -info )
203 IF( ap( jc+info-1 ).EQ.zero )
210 IF( ap( jc ).EQ.zero )
212 jc = jc + n - info + 1
221 CALL ztpsv( uplo, trans, diag, n, ap, b( 1, j ), 1 )
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine ztpsv(UPLO, TRANS, DIAG, N, AP, X, INCX)
ZTPSV
subroutine ztptrs(UPLO, TRANS, DIAG, N, NRHS, AP, B, LDB, INFO)
ZTPTRS