55 DOUBLE PRECISION FUNCTION dnrm2(N,X,INCX)
72 DOUBLE PRECISION one,zero
73 parameter(one=1.0d+0,zero=0.0d+0)
76 DOUBLE PRECISION absxi,norm,scale,ssq
82 IF (n.LT.1 .OR. incx.LT.1)
THEN
93 DO 10 ix = 1,1 + (n-1)*incx,incx
94 IF (x(ix).NE.zero)
THEN
96 IF (scale.LT.absxi)
THEN
97 ssq = one + ssq* (scale/absxi)**2
100 ssq = ssq + (absxi/scale)**2
104 norm = scale*sqrt(ssq)