Package1.0.2MathNumeric
fast-math
Non IEEE-754 compliant compile-time floating-point optimisations
- Version1.0.2
- CategoryMath, Numeric
- LicenceBSD-3-Clause
- AuthorLiyang HU and Mike Izbicki
- Maintainerfast-math@liyang.hu
- Pinned byhackage fast-math 1.0.2
- Sourcehackage.haskell.org/package/fast-math-1.0.2
Modules
4 modules- Numeric.FastMath0This module loads all rewrite rules. Unless you know that some rules
- Numeric.FastMath.Approximation0This module contains rewrite rules that may change the lowest order bits
- Numeric.FastMath.NaN0This module contains rules that break the way NaN is handled for Float
- Numeric.FastMath.SignedZeros0IEEE 754 math makes a distrinction between -0.0 and +0.0. This module
Description
The Numeric.FastMath module brings into scope many unsafe RULES for Floats and Doubles that can greatly improve run time performance. It is roughly equivalent to gcc's -ffast-math compiler flag. Optimisation (at least -O1) must be enabled for any RULES to take effect.
These rules are unsafe because they don't strictly adhere to the IEEE-754 regulations and may subtly change the results of your numeric computations. See the README on github for more details.
Depends on
1 package- base-4.20.2.0with GHC
Used by in this set · 0
Nothing in this set depends on it.