114 REAL function
clange( norm, m, n, a, lda, work )
133 parameter( one = 1.0e+0, zero = 0.0e+0 )
137 REAL scale, sum,
VALUE, temp
147 INTRINSIC abs, min, sqrt
151 IF( min( m, n ).EQ.0 )
THEN
153 ELSE IF(
lsame( norm,
'M' ) )
THEN
160 temp = abs( a( i, j ) )
161 IF(
VALUE.LT.temp .OR.
sisnan( temp ) )
VALUE = temp
164 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
172 sum = sum + abs( a( i, j ) )
174 IF(
VALUE.LT.sum .OR.
sisnan( sum ) )
VALUE = sum
176 ELSE IF(
lsame( norm,
'I' ) )
THEN
185 work( i ) = work( i ) + abs( a( i, j ) )
191 IF(
VALUE.LT.temp .OR.
sisnan( temp ) )
VALUE = temp
193 ELSE IF( (
lsame( norm,
'F' ) ) .OR. (
lsame( norm,
'E' ) ) )
THEN
200 CALL classq( m, a( 1, j ), 1, scale, sum )
202 VALUE = scale*sqrt( sum )
logical function sisnan(sin)
SISNAN tests input for NaN.
real function clange(norm, m, n, a, lda, work)
CLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine classq(n, x, incx, scale, sumsq)
CLASSQ updates a sum of squares represented in scaled form.
logical function lsame(ca, cb)
LSAME