fast-math

Non IEEE-754 compliant compile-time floating-point optimisations

Latest on Hackage:1.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Liyang HU and Mike Izbicki
Maintained by fast-math@liyang.hu

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:
Used by 1 package:
comments powered byDisqus