138 SUBROUTINE cgttrs( TRANS, N, NRHS, DL, D, DU, DU2, IPIV, B, LDB,
148 INTEGER INFO, LDB, N, NRHS
152 COMPLEX B( ldb, * ), D( * ), DL( * ), DU( * ), DU2( * )
159 INTEGER ITRANS, J, JB, NB
174 notran = ( trans.EQ.
'N' .OR. trans.EQ.
'n' )
175 IF( .NOT.notran .AND. .NOT.( trans.EQ.
'T' .OR. trans.EQ.
176 $
't' ) .AND. .NOT.( trans.EQ.
'C' .OR. trans.EQ.
'c' ) )
THEN
178 ELSE IF( n.LT.0 )
THEN
180 ELSE IF( nrhs.LT.0 )
THEN
182 ELSE IF( ldb.LT.max( n, 1 ) )
THEN
186 CALL xerbla(
'CGTTRS', -info )
192 IF( n.EQ.0 .OR. nrhs.EQ.0 )
199 ELSE IF( trans.EQ.
'T' .OR. trans.EQ.
't' )
THEN
210 nb = max( 1, ilaenv( 1,
'CGTTRS', trans, n, nrhs, -1, -1 ) )
213 IF( nb.GE.nrhs )
THEN
214 CALL cgtts2( itrans, n, nrhs, dl, d, du, du2, ipiv, b, ldb )
216 DO 10 j = 1, nrhs, nb
217 jb = min( nrhs-j+1, nb )
218 CALL cgtts2( itrans, n, jb, dl, d, du, du2, ipiv, b( 1, j ),
subroutine cgtts2(ITRANS, N, NRHS, DL, D, DU, DU2, IPIV, B, LDB)
CGTTS2 solves a system of linear equations with a tridiagonal matrix using the LU factorization compu...
subroutine cgttrs(TRANS, N, NRHS, DL, D, DU, DU2, IPIV, B, LDB, INFO)
CGTTRS
subroutine xerbla(SRNAME, INFO)
XERBLA