109 REAL FUNCTION slanhs( NORM, N, A, LDA, WORK )
121 REAL a( lda, * ), work( * )
128 parameter( one = 1.0e+0, zero = 0.0e+0 )
132 REAL scale, sum, value
142 INTRINSIC abs, min, sqrt
148 ELSE IF(
lsame( norm,
'M' ) )
THEN
154 DO 10 i = 1, min( n, j+1 )
155 sum = abs( a( i, j ) )
156 IF( value .LT. sum .OR.
sisnan( sum ) ) value = sum
159 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
166 DO 30 i = 1, min( n, j+1 )
167 sum = sum + abs( a( i, j ) )
169 IF( value .LT. sum .OR.
sisnan( sum ) ) value = sum
171 ELSE IF(
lsame( norm,
'I' ) )
THEN
179 DO 60 i = 1, min( n, j+1 )
180 work( i ) = work( i ) + abs( a( i, j ) )
186 IF( value .LT. sum .OR.
sisnan( sum ) ) value = sum
188 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
195 CALL
slassq( min( n, j+1 ), a( 1, j ), 1, scale, sum )
197 value = scale*sqrt( sum )