111 REAL function
slange( norm, m, n, a, lda, work )
122 REAL a( lda, * ), work( * )
129 parameter( one = 1.0e+0, zero = 0.0e+0 )
133 REAL 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.
sisnan( 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.
sisnan( 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.
sisnan( temp ) )
VALUE = temp
189 ELSE IF( (
lsame( norm,
'F' ) ) .OR.
190 $ (
lsame( norm,
'E' ) ) )
THEN
197 CALL slassq( m, a( 1, j ), 1, scale, sum )
199 VALUE = scale*sqrt( sum )
logical function sisnan(sin)
SISNAN tests input for NaN.
real function slange(norm, m, n, a, lda, work)
SLANGE returns the value of the 1-norm, Frobenius norm, infinity-norm, or the largest absolute value ...
subroutine slassq(n, x, incx, scale, sumsq)
SLASSQ updates a sum of squares represented in scaled form.
logical function lsame(ca, cb)
LSAME