118 SUBROUTINE cpttrs( UPLO, N, NRHS, D, E, B, LDB, INFO )
126 INTEGER INFO, LDB, N, NRHS
130 COMPLEX B( LDB, * ), E( * )
137 INTEGER IUPLO, J, JB, NB
154 upper = ( uplo.EQ.
'U' .OR. uplo.EQ.
'u' )
155 IF( .NOT.upper .AND. .NOT.( uplo.EQ.
'L' .OR. uplo.EQ.
'l' ) )
THEN
157 ELSE IF( n.LT.0 )
THEN
159 ELSE IF( nrhs.LT.0 )
THEN
161 ELSE IF( ldb.LT.max( 1, n ) )
THEN
165 CALL xerbla(
'CPTTRS', -info )
171 IF( n.EQ.0 .OR. nrhs.EQ.0 )
179 nb = max( 1, ilaenv( 1,
'CPTTRS', uplo, n, nrhs, -1, -1 ) )
190 IF( nb.GE.nrhs )
THEN
191 CALL cptts2( iuplo, n, nrhs, d, e, b, ldb )
193 DO 10 j = 1, nrhs, nb
194 jb = min( nrhs-j+1, nb )
195 CALL cptts2( iuplo, n, jb, d, e, b( 1, j ), ldb )
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...