109 DOUBLE PRECISION FUNCTION dlanhs( NORM, N, A, LDA, WORK )
121 DOUBLE PRECISION a( lda, * ), work( * )
127 DOUBLE PRECISION one, zero
128 parameter( one = 1.0d+0, zero = 0.0d+0 )
132 DOUBLE PRECISION 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.
disnan( 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.
disnan( 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.
disnan( sum ) ) value = sum
188 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
195 CALL
dlassq( min( n, j+1 ), a( 1, j ), 1, scale, sum )
197 value = scale*sqrt( sum )