LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ sla_gerpvgrw()

real function sla_gerpvgrw ( integer n,
integer ncols,
real, dimension( lda, * ) a,
integer lda,
real, dimension( ldaf, * ) af,
integer ldaf )

SLA_GERPVGRW

Download SLA_GERPVGRW + dependencies [TGZ] [ZIP] [TXT]

Purpose:
!>
!> SLA_GERPVGRW computes the reciprocal pivot growth factor
!> norm(A)/norm(U). The  norm is used. If this is
!> much less than 1, the stability of the LU factorization of the
!> (equilibrated) matrix A could be poor. This also means that the
!> solution X, estimated condition numbers, and error bounds could be
!> unreliable.
!> 
Parameters
[in]N
!>          N is INTEGER
!>     The number of linear equations, i.e., the order of the
!>     matrix A.  N >= 0.
!> 
[in]NCOLS
!>          NCOLS is INTEGER
!>     The number of columns of the matrix A. NCOLS >= 0.
!> 
[in]A
!>          A is REAL array, dimension (LDA,N)
!>     On entry, the N-by-N matrix A.
!> 
[in]LDA
!>          LDA is INTEGER
!>     The leading dimension of the array A.  LDA >= max(1,N).
!> 
[in]AF
!>          AF is REAL array, dimension (LDAF,N)
!>     The factors L and U from the factorization
!>     A = P*L*U as computed by SGETRF.
!> 
[in]LDAF
!>          LDAF is INTEGER
!>     The leading dimension of the array AF.  LDAF >= max(1,N).
!> 
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 94 of file sla_gerpvgrw.f.

95*
96* -- LAPACK computational routine --
97* -- LAPACK is a software package provided by Univ. of Tennessee, --
98* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
99*
100* .. Scalar Arguments ..
101 INTEGER N, NCOLS, LDA, LDAF
102* ..
103* .. Array Arguments ..
104 REAL A( LDA, * ), AF( LDAF, * )
105* ..
106*
107* =====================================================================
108*
109* .. Local Scalars ..
110 INTEGER I, J
111 REAL AMAX, UMAX, RPVGRW
112* ..
113* .. Intrinsic Functions ..
114 INTRINSIC abs, max, min
115* ..
116* .. Executable Statements ..
117*
118 rpvgrw = 1.0
119
120 DO j = 1, ncols
121 amax = 0.0
122 umax = 0.0
123 DO i = 1, n
124 amax = max( abs( a( i, j ) ), amax )
125 END DO
126 DO i = 1, j
127 umax = max( abs( af( i, j ) ), umax )
128 END DO
129 IF ( umax /= 0.0 ) THEN
130 rpvgrw = min( amax / umax, rpvgrw )
131 END IF
132 END DO
133 sla_gerpvgrw = rpvgrw
134*
135* End of SLA_GERPVGRW
136*
real function sla_gerpvgrw(n, ncols, a, lda, af, ldaf)
SLA_GERPVGRW
Here is the call graph for this function:
Here is the caller graph for this function: