139 $ info, work, iwork )
147 INTEGER n, lda, ldaf, info, cmode
148 REAL a( lda, * ), af( ldaf, * ), work( * ),
184 CALL xerbla(
'SLA_PORCOND', -info )
193 IF (
lsame( uplo,
'U' ) ) up = .true.
201 IF ( cmode .EQ. 1 )
THEN
203 tmp = tmp + abs( a( j, i ) * c( j ) )
206 tmp = tmp + abs( a( i, j ) * c( j ) )
208 ELSE IF ( cmode .EQ. 0 )
THEN
210 tmp = tmp + abs( a( j, i ) )
213 tmp = tmp + abs( a( i, j ) )
217 tmp = tmp + abs( a( j ,i ) / c( j ) )
220 tmp = tmp + abs( a( i, j ) / c( j ) )
228 IF ( cmode .EQ. 1 )
THEN
230 tmp = tmp + abs( a( i, j ) * c( j ) )
233 tmp = tmp + abs( a( j, i ) * c( j ) )
235 ELSE IF ( cmode .EQ. 0 )
THEN
237 tmp = tmp + abs( a( i, j ) )
240 tmp = tmp + abs( a( j, i ) )
244 tmp = tmp + abs( a( i, j ) / c( j ) )
247 tmp = tmp + abs( a( j, i ) / c( j ) )
260 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
267 work( i ) = work( i ) * work( 2*n+i )
271 CALL spotrs(
'Upper', n, 1, af, ldaf, work, n, info )
273 CALL spotrs(
'Lower', n, 1, af, ldaf, work, n, info )
278 IF ( cmode .EQ. 1 )
THEN
280 work( i ) = work( i ) / c( i )
282 ELSE IF ( cmode .EQ. -1 )
THEN
284 work( i ) = work( i ) * c( i )
291 IF ( cmode .EQ. 1 )
THEN
293 work( i ) = work( i ) / c( i )
295 ELSE IF ( cmode .EQ. -1 )
THEN
297 work( i ) = work( i ) * c( i )
302 CALL spotrs(
'Upper', n, 1, af, ldaf, work, n, info )
304 CALL spotrs(
'Lower', n, 1, af, ldaf, work, n, info )
310 work( i ) = work( i ) * work( 2*n+i )
318 IF( ainvnm .NE. 0.0 )
subroutine xerbla(srname, info)
real function sla_porcond(uplo, n, a, lda, af, ldaf, cmode, c, info, work, iwork)
SLA_PORCOND estimates the Skeel condition number for a symmetric positive-definite matrix.
subroutine slacn2(n, v, x, isgn, est, kase, isave)
SLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...
logical function lsame(ca, cb)
LSAME
subroutine spotrs(uplo, n, nrhs, a, lda, b, ldb, info)
SPOTRS