105 SUBROUTINE classq( N, X, INCX, SCALE, SUMSQ )
123 parameter( zero = 0.0e+0 )
134 INTRINSIC abs, aimag, real
139 DO 10 ix = 1, 1 + ( n-1 )*incx, incx
140 temp1 = abs( real( x( ix ) ) )
141 IF( temp1.GT.zero.OR.sisnan( temp1 ) )
THEN
142 IF( scale.LT.temp1 )
THEN
143 sumsq = 1 + sumsq*( scale / temp1 )**2
146 sumsq = sumsq + ( temp1 / scale )**2
149 temp1 = abs( aimag( x( ix ) ) )
150 IF( temp1.GT.zero.OR.sisnan( temp1 ) )
THEN
151 IF( scale.LT.temp1 .OR. sisnan( temp1 ) )
THEN
152 sumsq = 1 + sumsq*( scale / temp1 )**2
155 sumsq = sumsq + ( temp1 / scale )**2
subroutine classq(N, X, INCX, SCALE, SUMSQ)
CLASSQ updates a sum of squares represented in scaled form.