107 DOUBLE PRECISION FUNCTION dlanhs( NORM, N, A, LDA, WORK )
118 DOUBLE PRECISION a( lda, * ), work( * )
124 DOUBLE PRECISION one, zero
125 parameter( one = 1.0d+0, zero = 0.0d+0 )
129 DOUBLE PRECISION scale, sum, value
139 INTRINSIC abs, min, sqrt
145 ELSE IF(
lsame( norm,
'M' ) )
THEN
151 DO 10 i = 1, min( n, j+1 )
152 sum = abs( a( i, j ) )
153 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
156 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
163 DO 30 i = 1, min( n, j+1 )
164 sum = sum + abs( a( i, j ) )
166 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
168 ELSE IF(
lsame( norm,
'I' ) )
THEN
176 DO 60 i = 1, min( n, j+1 )
177 work( i ) = work( i ) + abs( a( i, j ) )
183 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
185 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
192 CALL dlassq( min( n, j+1 ), a( 1, j ), 1, scale, sum )
194 VALUE = scale*sqrt( sum )
logical function disnan(din)
DISNAN tests input for NaN.
double precision function dlanhs(norm, n, a, lda, work)
DLANHS returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine dlassq(n, x, incx, scale, sumsq)
DLASSQ updates a sum of squares represented in scaled form.
logical function lsame(ca, cb)
LSAME