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

◆ zla_gerpvgrw()

double precision function zla_gerpvgrw ( integer n,
integer ncols,
complex*16, dimension( lda, * ) a,
integer lda,
complex*16, dimension( ldaf, * ) af,
integer ldaf )

ZLA_GERPVGRW multiplies a square real matrix by a complex matrix.

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

Purpose:
!>
!>
!> ZLA_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*16 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*16 array, dimension (LDAF,N)
!>     The factors L and U from the factorization
!>     A = P*L*U as computed by ZGETRF.
!> 
[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 96 of file zla_gerpvgrw.f.

98*
99* -- LAPACK computational routine --
100* -- LAPACK is a software package provided by Univ. of Tennessee, --
101* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
102*
103* .. Scalar Arguments ..
104 INTEGER N, NCOLS, LDA, LDAF
105* ..
106* .. Array Arguments ..
107 COMPLEX*16 A( LDA, * ), AF( LDAF, * )
108* ..
109*
110* =====================================================================
111*
112* .. Local Scalars ..
113 INTEGER I, J
114 DOUBLE PRECISION AMAX, UMAX, RPVGRW
115 COMPLEX*16 ZDUM
116* ..
117* .. Intrinsic Functions ..
118 INTRINSIC max, min, abs, real, dimag
119* ..
120* .. Statement Functions ..
121 DOUBLE PRECISION CABS1
122* ..
123* .. Statement Function Definitions ..
124 cabs1( zdum ) = abs( dble( zdum ) ) + abs( dimag( zdum ) )
125* ..
126* .. Executable Statements ..
127*
128 rpvgrw = 1.0d+0
129
130 DO j = 1, ncols
131 amax = 0.0d+0
132 umax = 0.0d+0
133 DO i = 1, n
134 amax = max( cabs1( a( i, j ) ), amax )
135 END DO
136 DO i = 1, j
137 umax = max( cabs1( af( i, j ) ), umax )
138 END DO
139 IF ( umax /= 0.0d+0 ) THEN
140 rpvgrw = min( amax / umax, rpvgrw )
141 END IF
142 END DO
143 zla_gerpvgrw = rpvgrw
144*
145* End of ZLA_GERPVGRW
146*
double precision function zla_gerpvgrw(n, ncols, a, lda, af, ldaf)
ZLA_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: