[vsipl++] [patch] Add functions for isfinite, isnan, and isnormal; use them from error_db
Mark Mitchell
mark at codesourcery.com
Wed Oct 25 20:29:54 UTC 2006
Jules Bergmann wrote:
> Deep inside maxval there is a loop:
>
> maxval = X.get(0);
> for (i= 1 .. size)
> if (X.get(i) > maxval)
> maxval = X.get(i)
>
> If X.get(i) is a NaN, the comparison is false and the value is skipped
> over.
I agree that this is the right behavior by default. As you say,
checking for this case would be too expensive.
--
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713
More information about the vsipl++
mailing list