114 DOUBLE PRECISION FUNCTION zlange( NORM, M, N, A, LDA, WORK )
125 DOUBLE PRECISION work( * )
126 COMPLEX*16 a( lda, * )
132 DOUBLE PRECISION one, zero
133 parameter( one = 1.0d+0, zero = 0.0d+0 )
137 DOUBLE PRECISION scale, sum,
VALUE, temp
147 INTRINSIC abs, min, sqrt
151 IF( min( m, n ).EQ.0 )
THEN
153 ELSE IF(
lsame( norm,
'M' ) )
THEN
160 temp = abs( a( i, j ) )
161 IF(
VALUE.LT.temp .OR.
disnan( temp ) )
VALUE = temp
164 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
172 sum = sum + abs( a( i, j ) )
174 IF(
VALUE.LT.sum .OR.
disnan( sum ) )
VALUE = sum
176 ELSE IF(
lsame( norm,
'I' ) )
THEN
185 work( i ) = work( i ) + abs( a( i, j ) )
191 IF(
VALUE.LT.temp .OR.
disnan( temp ) )
VALUE = temp
193 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
200 CALL zlassq( m, a( 1, j ), 1, scale, sum )
202 VALUE = scale*sqrt( sum )
logical function disnan(din)
DISNAN tests input for NaN.
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 ...
subroutine zlassq(n, x, incx, scale, sumsq)
ZLASSQ updates a sum of squares represented in scaled form.
logical function lsame(ca, cb)
LSAME