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
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 )