111 SUBROUTINE dpotrs( UPLO, N, NRHS, A, LDA, B, LDB, INFO )
120 INTEGER info, lda, ldb, n, nrhs
123 DOUBLE PRECISION a( lda, * ), b( ldb, * )
130 parameter( one = 1.0d+0 )
150 upper =
lsame( uplo,
'U' )
151 IF( .NOT.upper .AND. .NOT.
lsame( uplo,
'L' ) )
THEN
153 ELSE IF( n.LT.0 )
THEN
155 ELSE IF( nrhs.LT.0 )
THEN
157 ELSE IF( lda.LT.max( 1, n ) )
THEN
159 ELSE IF( ldb.LT.max( 1, n ) )
THEN
163 CALL
xerbla(
'DPOTRS', -info )
169 IF( n.EQ.0 .OR. nrhs.EQ.0 )
178 CALL
dtrsm(
'Left',
'Upper',
'Transpose',
'Non-unit', n, nrhs,
179 $ one, a, lda, b, ldb )
183 CALL
dtrsm(
'Left',
'Upper',
'No transpose',
'Non-unit', n,
184 $ nrhs, one, a, lda, b, ldb )
191 CALL
dtrsm(
'Left',
'Lower',
'No transpose',
'Non-unit', n,
192 $ nrhs, one, a, lda, b, ldb )
196 CALL
dtrsm(
'Left',
'Lower',
'Transpose',
'Non-unit', n, nrhs,
197 $ one, a, lda, b, ldb )