| 9f4f8022 | 07-Aug-2017 |
Lisandro Dalcin <dalcinl@gmail.com> |
Math: Refactor IsInf/IsNan checker routines
* Add PetscIsInfReal() checker with `a && a/2 == a` as fallback. A separate checker for infinity is useful elsewhere to distinguish between infinitiy
Math: Refactor IsInf/IsNan checker routines
* Add PetscIsInfReal() checker with `a && a/2 == a` as fallback. A separate checker for infinity is useful elsewhere to distinguish between infinitiy and not-a-number floating point values. * Reimplement PetscIsInfOrNanReal() using IsInf and IsNan checkers.
show more ...
|