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
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 )