108 DOUBLE PRECISION FUNCTION zlanhs( NORM, N, A, LDA, WORK )
119 DOUBLE PRECISION work( * )
120 COMPLEX*16 a( lda, * )
126 DOUBLE PRECISION one, zero
127 parameter( one = 1.0d+0, zero = 0.0d+0 )
131 DOUBLE PRECISION scale, sum, value
141 INTRINSIC abs, min, sqrt
147 ELSE IF(
lsame( norm,
'M' ) )
THEN
153 DO 10 i = 1, min( n, j+1 )
154 sum = abs( a( i, j ) )
155 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
158 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
165 DO 30 i = 1, min( n, j+1 )
166 sum = sum + abs( a( i, j ) )
168 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
170 ELSE IF(
lsame( norm,
'I' ) )
THEN
178 DO 60 i = 1, min( n, j+1 )
179 work( i ) = work( i ) + abs( a( i, j ) )
185 IF(
VALUE .LT. sum .OR.
disnan( sum ) )
VALUE = sum
187 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
194 CALL zlassq( min( n, j+1 ), a( 1, j ), 1, scale, sum )
196 VALUE = scale*sqrt( sum )
logical function disnan(din)
DISNAN tests input for NaN.
double precision function zlanhs(norm, n, a, lda, work)
ZLANHS returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine zlassq(n, x, incx, scale, sumsq)
ZLASSQ updates a sum of squares represented in scaled form.
logical function lsame(ca, cb)
LSAME