Copyright | 2014 Edward Kmett Charles Durham [2015..2020] Trevor L. McDonell |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Free metric spaces
Documentation
class Num a => Epsilon a where Source #
Provides a fairly subjective test to see if a quantity is near zero.
>>>
nearZero (1e-11 :: Exp Double)
(0, ())
>>>
nearZero (1e-17 :: Exp Double)
(1, ())
>>>
nearZero (1e-5 :: Exp Float)
(0, ())
>>>
nearZero (1e-7 :: Exp Float)
(1, ())
Instances
Epsilon Double Source # |
|
Epsilon Float Source # |
|
Epsilon CDouble Source # |
|
Epsilon CFloat Source # |
|
Epsilon a => Epsilon (Plucker a) Source # | |
(RealFloat a, Epsilon a) => Epsilon (Quaternion a) Source # | |
Defined in Data.Array.Accelerate.Linear.Quaternion | |
Epsilon a => Epsilon (V4 a) Source # | |
Epsilon a => Epsilon (V3 a) Source # | |
Epsilon a => Epsilon (V2 a) Source # | |
Epsilon a => Epsilon (V1 a) Source # | |