Copyright | 2021 Dominik Schrempf |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creation date: Thu Feb 14 13:27:05 2019.
Equality tests.
Synopsis
- allEqual :: Eq a => [a] -> Bool
- allNearlyEqualWith :: Double -> [Double] -> Bool
- allNearlyEqual :: [Double] -> Bool
- nearlyEqWith :: Double -> Double -> Double -> Bool
- eps :: Double
- nearlyEq :: Double -> Double -> Bool
- (=~=) :: Double -> Double -> Bool
- nearlyEqListWith :: Double -> [Double] -> [Double] -> Bool
- nearlyEqList :: [Double] -> [Double] -> Bool
- nearlyEqVecWith :: Double -> Vector R -> Vector R -> Bool
- nearlyEqVec :: Vector R -> Vector R -> Bool
- nearlyEqMatWith :: Double -> Matrix R -> Matrix R -> Bool
- nearlyEqMat :: Matrix R -> Matrix R -> Bool
Equality
allEqual :: Eq a => [a] -> Bool Source #
Test if all elements of a list are equal; returns True for empty list.
allNearlyEqualWith :: Double -> [Double] -> Bool Source #
Test if all elements of a list are nearly equal; returns True for empty list.
allNearlyEqual :: [Double] -> Bool Source #
Test if all elements of a list are nearly equal; returns True for empty list.
nearlyEqWith :: Double -> Double -> Double -> Bool Source #
Test for equality with given tolerance (needed because of machine precision).
nearlyEq :: Double -> Double -> Bool Source #
Test for equality with predefined tolerance eps
(needed because of
machine precision).
nearlyEqListWith :: Double -> [Double] -> [Double] -> Bool Source #
Test if two lists are nearly equal.
nearlyEqList :: [Double] -> [Double] -> Bool Source #
Test if two lists are nearly equal; use tolerance eps
.
nearlyEqVecWith :: Double -> Vector R -> Vector R -> Bool Source #
Test if two vectors are nearly equal.
nearlyEqVec :: Vector R -> Vector R -> Bool Source #
Test if two vectors are nearly equal; use tolerance eps
.