120 SUBROUTINE cpttrs( UPLO, N, NRHS, D, E, B, LDB, INFO )
128 INTEGER INFO, LDB, N, NRHS
132 COMPLEX B( LDB, * ), E( * )
139 INTEGER IUPLO, J, JB, NB
156 upper = ( uplo.EQ.
'U' .OR. uplo.EQ.
'u' )
157 IF( .NOT.upper .AND. .NOT.( uplo.EQ.
'L' .OR. uplo.EQ.
'l' ) )
THEN
159 ELSE IF( n.LT.0 )
THEN
161 ELSE IF( nrhs.LT.0 )
THEN
163 ELSE IF( ldb.LT.max( 1, n ) )
THEN
167 CALL xerbla(
'CPTTRS', -info )
173 IF( n.EQ.0 .OR. nrhs.EQ.0 )
181 nb = max( 1, ilaenv( 1,
'CPTTRS', uplo, n, nrhs, -1, -1 ) )
192 IF( nb.GE.nrhs )
THEN
193 CALL cptts2( iuplo, n, nrhs, d, e, b, ldb )
195 DO 10 j = 1, nrhs, nb
196 jb = min( nrhs-j+1, nb )
197 CALL cptts2( iuplo, n, jb, d, e, b( 1, j ), ldb )
subroutine xerbla(srname, info)
subroutine cpttrs(uplo, n, nrhs, d, e, b, ldb, info)
CPTTRS
subroutine cptts2(iuplo, n, nrhs, d, e, b, ldb)
CPTTS2 solves a tridiagonal system of the form AX=B using the L D LH factorization computed by spttrf...