125 REAL FUNCTION clangb( NORM, N, KL, KU, AB, LDAB,
135 INTEGER KL, KU, LDAB, N
139 COMPLEX AB( ldab, * )
146 parameter ( one = 1.0e+0, zero = 0.0e+0 )
150 REAL SCALE, SUM,
VALUE, TEMP
153 LOGICAL LSAME, SISNAN
154 EXTERNAL lsame, sisnan
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. sisnan( 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. sisnan( 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. sisnan( temp ) )
VALUE = temp
207 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
216 CALL classq( min( n, j+kl )-l+1, ab( k, j ), 1, scale, sum )
218 VALUE = scale*sqrt( sum )
subroutine classq(N, X, INCX, SCALE, SUMSQ)
CLASSQ updates a sum of squares represented in scaled form.
real function clangb(NORM, N, KL, KU, AB, LDAB, WORK)
CLANGB returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...