137 $ info, work, iwork )
145 INTEGER n, lda, ldaf, info, cmode
146 REAL a( lda, * ), af( ldaf, * ), work( * ),
182 CALL xerbla(
'SLA_PORCOND', -info )
191 IF (
lsame( uplo,
'U' ) ) up = .true.
199 IF ( cmode .EQ. 1 )
THEN
201 tmp = tmp + abs( a( j, i ) * c( j ) )
204 tmp = tmp + abs( a( i, j ) * c( j ) )
206 ELSE IF ( cmode .EQ. 0 )
THEN
208 tmp = tmp + abs( a( j, i ) )
211 tmp = tmp + abs( a( i, j ) )
215 tmp = tmp + abs( a( j ,i ) / c( j ) )
218 tmp = tmp + abs( a( i, j ) / c( j ) )
226 IF ( cmode .EQ. 1 )
THEN
228 tmp = tmp + abs( a( i, j ) * c( j ) )
231 tmp = tmp + abs( a( j, i ) * c( j ) )
233 ELSE IF ( cmode .EQ. 0 )
THEN
235 tmp = tmp + abs( a( i, j ) )
238 tmp = tmp + abs( a( j, i ) )
242 tmp = tmp + abs( a( i, j ) / c( j ) )
245 tmp = tmp + abs( a( j, i ) / c( j ) )
258 CALL slacn2( n, work( n+1 ), work, iwork, ainvnm, kase, isave )
265 work( i ) = work( i ) * work( 2*n+i )
269 CALL spotrs(
'Upper', n, 1, af, ldaf, work, n, info )
271 CALL spotrs(
'Lower', n, 1, af, ldaf, work, n, info )
276 IF ( cmode .EQ. 1 )
THEN
278 work( i ) = work( i ) / c( i )
280 ELSE IF ( cmode .EQ. -1 )
THEN
282 work( i ) = work( i ) * c( i )
289 IF ( cmode .EQ. 1 )
THEN
291 work( i ) = work( i ) / c( i )
293 ELSE IF ( cmode .EQ. -1 )
THEN
295 work( i ) = work( i ) * c( i )
300 CALL spotrs(
'Upper', n, 1, af, ldaf, work, n, info )
302 CALL spotrs(
'Lower', n, 1, af, ldaf, work, n, info )
308 work( i ) = work( i ) * work( 2*n+i )
316 IF( ainvnm .NE. 0.0 )
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...