142 $ cmode, c, info, work,
152 INTEGER n, lda, ldaf, info, cmode
153 DOUBLE PRECISION a( lda, * ), af( ldaf, * ), work( * ),
164 DOUBLE PRECISION ainvnm, tmp
190 CALL
xerbla(
'DLA_PORCOND', -info )
199 IF (
lsame( uplo,
'U' ) ) up = .true.
207 IF ( cmode .EQ. 1 )
THEN
209 tmp = tmp + abs( a( j, i ) * c( j ) )
212 tmp = tmp + abs( a( i, j ) * c( j ) )
214 ELSE IF ( cmode .EQ. 0 )
THEN
216 tmp = tmp + abs( a( j, i ) )
219 tmp = tmp + abs( a( i, j ) )
223 tmp = tmp + abs( a( j ,i ) / c( j ) )
226 tmp = tmp + abs( a( i, j ) / c( j ) )
234 IF ( cmode .EQ. 1 )
THEN
236 tmp = tmp + abs( a( i, j ) * c( j ) )
239 tmp = tmp + abs( a( j, i ) * c( j ) )
241 ELSE IF ( cmode .EQ. 0 )
THEN
243 tmp = tmp + abs( a( i, j ) )
246 tmp = tmp + abs( a( j, i ) )
250 tmp = tmp + abs( a( i, j ) / c( j ) )
253 tmp = tmp + abs( a( j, i ) / c( j ) )
266 CALL
dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
273 work( i ) = work( i ) * work( 2*n+i )
277 CALL
dpotrs(
'Upper', n, 1, af, ldaf, work, n, info )
279 CALL
dpotrs(
'Lower', n, 1, af, ldaf, work, n, info )
284 IF ( cmode .EQ. 1 )
THEN
286 work( i ) = work( i ) / c( i )
288 ELSE IF ( cmode .EQ. -1 )
THEN
290 work( i ) = work( i ) * c( i )
297 IF ( cmode .EQ. 1 )
THEN
299 work( i ) = work( i ) / c( i )
301 ELSE IF ( cmode .EQ. -1 )
THEN
303 work( i ) = work( i ) * c( i )
308 CALL
dpotrs(
'Upper', n, 1, af, ldaf, work, n, info )
310 CALL
dpotrs(
'Lower', n, 1, af, ldaf, work, n, info )
316 work( i ) = work( i ) * work( 2*n+i )
324 IF( ainvnm .NE. 0.0d+0 )