diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-06-25 13:51:03 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-06-25 13:51:03 +0200 |
commit | 8d49e72daf7caab3359b93b80aace4c5977b0253 (patch) | |
tree | c5638962b1c21cec54a60e1c079f53d79674598e /packages/tests/src/Numeric/LinearAlgebra/Tests/Properties.hs | |
parent | ea299f1e482cb65d4a7371f0a5b49df2e4e62890 (diff) | |
parent | 2f0a105e86a904afef5ba340aaa7aa2514a0da57 (diff) |
Merge pull request #78 from dlax/split-tests
Split out GSL tests from base ones
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) |