116 REAL FUNCTION clange( NORM, M, N, A, LDA, WORK )
136 parameter( one = 1.0e+0, zero = 0.0e+0 )
140 REAL 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.
sisnan( 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.
sisnan( 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.
sisnan( temp ) ) value = temp
196 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
203 CALL
classq( m, a( 1, j ), 1, scale, sum )
205 value = scale*sqrt( sum )