116 DOUBLE PRECISION FUNCTION zlange( NORM, M, N, A, LDA, WORK )
128 DOUBLE PRECISION WORK( * )
129 COMPLEX*16 A( lda, * )
135 DOUBLE PRECISION ONE, ZERO
136 parameter ( one = 1.0d+0, zero = 0.0d+0 )
140 DOUBLE PRECISION SCALE, SUM,
VALUE, TEMP
143 LOGICAL LSAME, DISNAN
144 EXTERNAL lsame, disnan
150 INTRINSIC abs, min, sqrt
154 IF( min( m, n ).EQ.0 )
THEN
156 ELSE IF( lsame( norm,
'M' ) )
THEN
163 temp = abs( a( i, j ) )
164 IF(
VALUE.LT.temp .OR. disnan( temp ) )
VALUE = temp
167 ELSE IF( ( lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
175 sum = sum + abs( a( i, j ) )
177 IF(
VALUE.LT.sum .OR. disnan( sum ) )
VALUE = sum
179 ELSE IF( lsame( norm,
'I' ) )
THEN
188 work( i ) = work( i ) + abs( a( i, j ) )
194 IF(
VALUE.LT.temp .OR. disnan( temp ) )
VALUE = temp
196 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
203 CALL zlassq( m, a( 1, j ), 1, scale, sum )
205 VALUE = scale*sqrt( sum )
subroutine zlassq(N, X, INCX, SCALE, SUMSQ)
ZLASSQ updates a sum of squares represented in scaled form.
double precision function zlange(NORM, M, N, A, LDA, WORK)
ZLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...