diff options
Diffstat (limited to 'packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs')
-rw-r--r-- | packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs b/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs index d6ec957..9bdf897 100644 --- a/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs +++ b/packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs | |||
@@ -13,7 +13,7 @@ Testing properties. | |||
13 | -} | 13 | -} |
14 | 14 | ||
15 | module Numeric.LinearAlgebra.Tests.Properties ( | 15 | module Numeric.LinearAlgebra.Tests.Properties ( |
16 | dist, (|~|), (~:), Aprox((:~)), | 16 | dist, (|~|), (~~), (~:), Aprox((:~)), |
17 | zeros, ones, | 17 | zeros, ones, |
18 | square, | 18 | square, |
19 | unitary, | 19 | unitary, |
@@ -60,6 +60,8 @@ infixl 4 |~| | |||
60 | a |~| b = a :~10~: b | 60 | a |~| b = a :~10~: b |
61 | --a |~| b = dist a b < 10^^(-10) | 61 | --a |~| b = dist a b < 10^^(-10) |
62 | 62 | ||
63 | a ~~ b = fromList a |~| fromList b | ||
64 | |||
63 | data Aprox a = (:~) a Int | 65 | data Aprox a = (:~) a Int |
64 | -- (~:) :: (Normed a, Num a) => Aprox a -> a -> Bool | 66 | -- (~:) :: (Normed a, Num a) => Aprox a -> a -> Bool |
65 | a :~n~: b = dist a b < 10^^(-n) | 67 | a :~n~: b = dist a b < 10^^(-n) |