search for: ixmax

Displaying 1 result from an estimated 1 matches for "ixmax".

Did you mean: xmax
1999 Oct 08
1
floor(NaN) problem fixed in massdist.c (PR#291)
...uot; statement. But it goes inside on Alpha/Linux (because ixmin is 0), and set y[0] and y[1] to NaN. Following is extracted from massdist.c for(i=0 ; i<*nx ; i++) { xpos = (x[i] - *xlow) / xdelta; ix = floor(xpos); fx = xpos - ix; if(ixmin <= ix && ix <= ixmax) { y[ix] += (1.0 - fx); y[ix + 1] += fx; } else if(ix == -1) { y[0] += fx; } else if(ix == ixmax + 1) { y[ixmax + 1] += (1.0 - fx); } } So I think the statement if(ixmin <= ix && ix <= ixmax) { should be changed to...