141 DOUBLE PRECISION FUNCTION dla_porcond( UPLO, N, A, LDA, AF, LDAF,
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
173 EXTERNAL lsame, idamax
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 )
double precision function dla_porcond(UPLO, N, A, LDA, AF, LDAF, CMODE, C, INFO, WORK, IWORK)
DLA_PORCOND estimates the Skeel condition number for a symmetric positive-definite matrix...
subroutine xerbla(SRNAME, INFO)
XERBLA
subroutine dpotrs(UPLO, N, NRHS, A, LDA, B, LDB, INFO)
DPOTRS
subroutine dlacn2(N, V, X, ISGN, EST, KASE, ISAVE)
DLACN2 estimates the 1-norm of a square matrix, using reverse communication for evaluating matrix-vec...