116 REAL FUNCTION clange( NORM, M, N, A, LDA, WORK )
136 parameter ( one = 1.0e+0, zero = 0.0e+0 )
140 REAL SCALE, SUM,
VALUE, TEMP
143 LOGICAL LSAME, SISNAN
144 EXTERNAL lsame, sisnan
150 INTRINSIC abs, min, sqrt
154 IF( min( m, n ).EQ.0 )
THEN
156 ELSE IF( lsame( norm,
'M' ) )
THEN
163 temp = abs( a( i, j ) )
164 IF(
VALUE.LT.temp .OR. sisnan( temp ) )
VALUE = temp
167 ELSE IF( ( lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
175 sum = sum + abs( a( i, j ) )
177 IF(
VALUE.LT.sum .OR. sisnan( sum ) )
VALUE = sum
179 ELSE IF( lsame( norm,
'I' ) )
THEN
188 work( i ) = work( i ) + abs( a( i, j ) )
194 IF(
VALUE.LT.temp .OR. sisnan( temp ) )
VALUE = temp
196 ELSE IF( ( lsame( norm,
'F' ) ) .OR. ( lsame( norm,
'E' ) ) )
THEN
203 CALL classq( m, a( 1, j ), 1, scale, sum )
205 VALUE = scale*sqrt( sum )
subroutine classq(N, X, INCX, SCALE, SUMSQ)
CLASSQ updates a sum of squares represented in scaled form.
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 ...