125 DOUBLE PRECISION FUNCTION zlangb( NORM, N, KL, KU, AB, LDAB,
135 INTEGER KL, KU, LDAB, N
138 DOUBLE PRECISION WORK( * )
139 COMPLEX*16 AB( ldab, * )
145 DOUBLE PRECISION ONE, ZERO
146 parameter ( one = 1.0d+0, zero = 0.0d+0 )
150 DOUBLE PRECISION SCALE, SUM,
VALUE, TEMP
153 LOGICAL LSAME, DISNAN
154 EXTERNAL lsame, disnan
160 INTRINSIC abs, max, min, sqrt
166 ELSE IF( lsame( norm,
'M' ) )
THEN
172 DO 10 i = max( ku+2-j, 1 ), min( n+ku+1-j, kl+ku+1 )
173 temp = abs( ab( i, j ) )
174 IF(
VALUE.LT.temp .OR. disnan( temp ) )
VALUE = temp
177 ELSE IF( ( lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
184 DO 30 i = max( ku+2-j, 1 ), min( n+ku+1-j, kl+ku+1 )
185 sum = sum + abs( ab( i, j ) )
187 IF(
VALUE.LT.sum .OR. disnan( sum ) )
VALUE = sum
189 ELSE IF( lsame( norm,
'I' ) )
THEN
198 DO 60 i = max( 1, j-ku ), min( n, j+kl )
199 work( i ) = work( i ) + abs( ab( k+i, j ) )
205 IF(
VALUE.LT.temp .OR. disnan( temp ) )
VALUE = temp
207 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
216 CALL zlassq( min( n, j+kl )-l+1, ab( k, j ), 1, scale, sum )
218 VALUE = scale*sqrt( sum )
subroutine zlassq(N, X, INCX, SCALE, SUMSQ)
ZLASSQ updates a sum of squares represented in scaled form.
double precision function zlangb(NORM, N, KL, KU, AB, LDAB, WORK)
ZLANGB returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...