sparse-linear-algebra-0.2.0.5: Numerical computation in native Haskell

Safe HaskellSafe
LanguageHaskell2010

Numeric.Eps

Contents

Synopsis

Numerical tolerance for "near-0" tests

eps :: Double Source #

eps = 1e-8

Rounding operations

almostZero :: Double -> Bool Source #

Rounding rule

almostOne :: Double -> Bool Source #

Rounding rule

withDefault :: (t -> Bool) -> t -> t -> t Source #

with2Defaults :: (t -> Bool) -> (t -> Bool) -> t -> t -> t -> t Source #

roundZeroOne :: Double -> Double Source #

Round to respectively 0 or 1 within some predefined numerical precision eps