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

◆ cla_gerpvgrw()

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

CLA_GERPVGRW multiplies a square real matrix by a complex matrix.

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

Purpose:
!>
!>
!> CLA_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 COMPLEX 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 COMPLEX array, dimension (LDAF,N)
!>     The factors L and U from the factorization
!>     A = P*L*U as computed by CGETRF.
!> 
[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 95 of file cla_gerpvgrw.f.

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