111 DOUBLE PRECISION FUNCTION dlange( NORM, M, N, A, LDA, WORK )
122 DOUBLE PRECISION a( lda, * ), work( * )
128 DOUBLE PRECISION one, zero
129 parameter( one = 1.0d+0, zero = 0.0d+0 )
133 DOUBLE PRECISION scale, sum,
VALUE, temp
143 INTRINSIC abs, min, sqrt
147 IF( min( m, n ).EQ.0 )
THEN
149 ELSE IF(
lsame( norm,
'M' ) )
THEN
156 temp = abs( a( i, j ) )
157 IF(
VALUE.LT.temp .OR.
disnan( temp ) )
VALUE = temp
160 ELSE IF( (
lsame( norm,
'O' ) ) .OR. ( norm.EQ.
'1' ) )
THEN
168 sum = sum + abs( a( i, j ) )
170 IF(
VALUE.LT.sum .OR.
disnan( sum ) )
VALUE = sum
172 ELSE IF(
lsame( norm,
'I' ) )
THEN
181 work( i ) = work( i ) + abs( a( i, j ) )
187 IF(
VALUE.LT.temp .OR.
disnan( temp ) )
VALUE = temp
189 ELSE IF( (
lsame( norm,
'F' ) ) .OR.
190 $ (
lsame( norm,
'E' ) ) )
THEN
197 CALL dlassq( m, a( 1, j ), 1, scale, sum )
199 VALUE = scale*sqrt( sum )
logical function disnan(din)
DISNAN tests input for NaN.
double precision function dlange(norm, m, n, a, lda, work)
DLANGE 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.
logical function lsame(ca, cb)
LSAME