76 REAL FUNCTION scnrm2(N,X,INCX)
94 parameter(one=1.0e+0,zero=0.0e+0)
97 REAL NORM,SCALE,SSQ,TEMP
101 INTRINSIC abs,aimag,
REAL,SQRT
103 IF (n.LT.1 .OR. incx.LT.1)
THEN 112 DO 10 ix = 1,1 + (n-1)*incx,incx
113 IF (
REAL(x(ix)).NE.ZERO) then
114 temp = abs(
REAL(x(ix)))
115 IF (scale.LT.temp)
THEN 116 ssq = one + ssq* (scale/temp)**2
119 ssq = ssq + (temp/scale)**2
122 IF (aimag(x(ix)).NE.zero)
THEN 123 temp = abs(aimag(x(ix)))
124 IF (scale.LT.temp)
THEN 125 ssq = one + ssq* (scale/temp)**2
128 ssq = ssq + (temp/scale)**2
132 norm = scale*sqrt(ssq)
real function scnrm2(N, X, INCX)
SCNRM2