120 DOUBLE PRECISION FUNCTION dlangb( NORM, N, KL, KU, AB, LDAB,
129 INTEGER kl, ku, ldab, n
132 DOUBLE PRECISION ab( ldab, * ), work( * )
139 DOUBLE PRECISION one, zero
140 parameter( one = 1.0d+0, zero = 0.0d+0 )
144 DOUBLE PRECISION scale, sum,
VALUE, temp
154 INTRINSIC abs, max, min, sqrt
160 ELSE IF(
lsame( norm,
'M' ) )
THEN
166 DO 10 i = max( ku+2-j, 1 ), min( n+ku+1-j, kl+ku+1 )
167 temp = abs( ab( i, j ) )
168 IF(
VALUE.LT.temp .OR.
disnan( temp ) )
VALUE = temp
171 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
178 DO 30 i = max( ku+2-j, 1 ), min( n+ku+1-j, kl+ku+1 )
179 sum = sum + abs( ab( i, j ) )
181 IF(
VALUE.LT.sum .OR.
disnan( sum ) )
VALUE = sum
183 ELSE IF(
lsame( norm,
'I' ) )
THEN
192 DO 60 i = max( 1, j-ku ), min( n, j+kl )
193 work( i ) = work( i ) + abs( ab( k+i, j ) )
199 IF(
VALUE.LT.temp .OR.
disnan( temp ) )
VALUE = temp
201 ELSE IF( (
lsame( norm,
'F' ) ) .OR.
202 $ (
lsame( norm,
'E' ) ) )
THEN
211 CALL dlassq( min( n, j+kl )-l+1, ab( k, j ), 1, scale,
214 VALUE = scale*sqrt( sum )
double precision function dlangb(norm, n, kl, ku, ab, ldab, work)
DLANGB 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.