110 DOUBLE PRECISION FUNCTION zlanhs( NORM, N, A, LDA, WORK )
122 DOUBLE PRECISION WORK( * )
123 COMPLEX*16 A( lda, * )
129 DOUBLE PRECISION ONE, ZERO
130 parameter ( one = 1.0d+0, zero = 0.0d+0 )
134 DOUBLE PRECISION SCALE, SUM, VALUE
137 LOGICAL LSAME, DISNAN
138 EXTERNAL lsame, disnan
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. disnan( 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. disnan( 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. disnan( sum ) )
VALUE = sum
190 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
197 CALL zlassq( min( n, j+1 ), a( 1, j ), 1, scale, sum )
199 VALUE = scale*sqrt( sum )
subroutine zlassq(N, X, INCX, SCALE, SUMSQ)
ZLASSQ updates a sum of squares represented in scaled form.
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 ...