115 DOUBLE PRECISION FUNCTION dlange( NORM, M, N, A, LDA, WORK )
127 DOUBLE PRECISION a( lda, * ), work( * )
133 DOUBLE PRECISION one, zero
134 parameter( one = 1.0d+0, zero = 0.0d+0 )
138 DOUBLE PRECISION scale, sum, value, temp
148 INTRINSIC abs, min, sqrt
152 IF( min( m, n ).EQ.0 )
THEN
154 ELSE IF(
lsame( norm,
'M' ) )
THEN
161 temp = abs( a( i, j ) )
162 IF( value.LT.temp .OR.
disnan( temp ) ) value = temp
165 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
173 sum = sum + abs( a( i, j ) )
175 IF( value.LT.sum .OR.
disnan( sum ) ) value = sum
177 ELSE IF(
lsame( norm,
'I' ) )
THEN
186 work( i ) = work( i ) + abs( a( i, j ) )
192 IF( value.LT.temp .OR.
disnan( temp ) ) value = temp
194 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
201 CALL
dlassq( m, a( 1, j ), 1, scale, sum )
203 value = scale*sqrt( sum )