110 REAL FUNCTION clanhs( NORM, N, A, LDA, WORK )
130 parameter( one = 1.0e+0, zero = 0.0e+0 )
134 REAL scale, sum, value
144 INTRINSIC abs, min, sqrt
150 ELSE IF(
lsame( norm,
'M' ) )
THEN
156 DO 10 i = 1, min( n, j+1 )
157 sum = abs( a( i, j ) )
158 IF( value .LT. sum .OR.
sisnan( sum ) ) value = sum
161 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
168 DO 30 i = 1, min( n, j+1 )
169 sum = sum + abs( a( i, j ) )
171 IF( value .LT. sum .OR.
sisnan( sum ) ) value = sum
173 ELSE IF(
lsame( norm,
'I' ) )
THEN
181 DO 60 i = 1, min( n, j+1 )
182 work( i ) = work( i ) + abs( a( i, j ) )
188 IF( value .LT. sum .OR.
sisnan( sum ) ) value = sum
190 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
197 CALL
classq( min( n, j+1 ), a( 1, j ), 1, scale, sum )
199 value = scale*sqrt( sum )