111 SUBROUTINE spotrs( UPLO, N, NRHS, A, LDA, B, LDB, INFO )
120 INTEGER info, lda, ldb, n, nrhs
123 REAL a( lda, * ), b( ldb, * )
130 parameter( one = 1.0e+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(
'SPOTRS', -info )
169 IF( n.EQ.0 .OR. nrhs.EQ.0 )
178 CALL
strsm(
'Left',
'Upper',
'Transpose',
'Non-unit', n, nrhs,
179 $ one, a, lda, b, ldb )
183 CALL
strsm(
'Left',
'Upper',
'No transpose',
'Non-unit', n,
184 $ nrhs, one, a, lda, b, ldb )
191 CALL
strsm(
'Left',
'Lower',
'No transpose',
'Non-unit', n,
192 $ nrhs, one, a, lda, b, ldb )
196 CALL
strsm(
'Left',
'Lower',
'Transpose',
'Non-unit', n, nrhs,
197 $ one, a, lda, b, ldb )