148 $ ipiv, cmode, c, info, work,
158 INTEGER n, lda, ldaf, info, cmode
161 INTEGER iwork( * ), ipiv( * )
162 DOUBLE PRECISION a( lda, * ), af( ldaf, * ), work( * ), c( * )
170 DOUBLE PRECISION ainvnm, smlnum, tmp
195 ELSE IF( lda.LT.max( 1, n ) )
THEN
197 ELSE IF( ldaf.LT.max( 1, n ) )
THEN
201 CALL
xerbla(
'DLA_SYRCOND', -info )
209 IF (
lsame( uplo,
'U' ) ) up = .true.
217 IF ( cmode .EQ. 1 )
THEN
219 tmp = tmp + abs( a( j, i ) * c( j ) )
222 tmp = tmp + abs( a( i, j ) * c( j ) )
224 ELSE IF ( cmode .EQ. 0 )
THEN
226 tmp = tmp + abs( a( j, i ) )
229 tmp = tmp + abs( a( i, j ) )
233 tmp = tmp + abs( a( j, i ) / c( j ) )
236 tmp = tmp + abs( a( i, j ) / c( j ) )
244 IF ( cmode .EQ. 1 )
THEN
246 tmp = tmp + abs( a( i, j ) * c( j ) )
249 tmp = tmp + abs( a( j, i ) * c( j ) )
251 ELSE IF ( cmode .EQ. 0 )
THEN
253 tmp = tmp + abs( a( i, j ) )
256 tmp = tmp + abs( a( j, i ) )
260 tmp = tmp + abs( a( i, j) / c( j ) )
263 tmp = tmp + abs( a( j, i) / c( j ) )
272 smlnum =
dlamch(
'Safe minimum' )
278 CALL
dlacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
285 work( i ) = work( i ) * work( 2*n+i )
289 CALL
dsytrs(
'U', n, 1, af, ldaf, ipiv, work, n, info )
291 CALL
dsytrs(
'L', n, 1, af, ldaf, ipiv, work, n, info )
296 IF ( cmode .EQ. 1 )
THEN
298 work( i ) = work( i ) / c( i )
300 ELSE IF ( cmode .EQ. -1 )
THEN
302 work( i ) = work( i ) * c( i )
309 IF ( cmode .EQ. 1 )
THEN
311 work( i ) = work( i ) / c( i )
313 ELSE IF ( cmode .EQ. -1 )
THEN
315 work( i ) = work( i ) * c( i )
320 CALL
dsytrs(
'U', n, 1, af, ldaf, ipiv, work, n, info )
322 CALL
dsytrs(
'L', n, 1, af, ldaf, ipiv, work, n, info )
328 work( i ) = work( i ) * work( 2*n+i )
337 IF( ainvnm .NE. 0.0d+0 )