The fast-math package
The Numeric.FastMath module brings into scope RULES for Floats and Doubles that rewrite x-x, 0*x and x*0 to 0. This disagrees with IEEE-754 when x is NaN, but is acceptable for most applications.
Importing Numeric.FastMath.Infinitesimal also rewrites 0/x to 0.
Optimisation (at least -O1) must be enabled for any RULES to take effect.
Properties
| Version | 0.1 |
|---|---|
| Dependencies | base (≥3 & <5) |
| License | BSD3 |
| Copyright | © 2011, Liyang HU |
| Author | Liyang HU |
| Maintainer | fast-math@liyang.hu |
| Category | Math, Numeric |
| Upload date | Sun May 8 09:35:05 UTC 2011 |
| Uploaded by | LiyangHu |
| Built on | ghc-7.0 |
Modules
Downloads
- fast-math-0.1.tar.gz (Cabal source package)
- package description (included in the package)