diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-09-14 11:06:57 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-09-14 11:06:57 +0000 |
commit | 9e2f7fb0ca902665b430a96f77959522976a97f9 (patch) | |
tree | c2f258fe28df79a645f3908655b46fbaf89ecf16 /examples | |
parent | 620d5008ea9a931a91907cd0c902bb64f005121f (diff) |
code refactoring
Diffstat (limited to 'examples')
-rw-r--r-- | examples/oldtests.hs | 6 | ||||
-rw-r--r-- | examples/tests.hs | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/examples/oldtests.hs b/examples/oldtests.hs index 5b0e9b4..b01675f 100644 --- a/examples/oldtests.hs +++ b/examples/oldtests.hs | |||
@@ -1,9 +1,5 @@ | |||
1 | import Test.HUnit | 1 | import Test.HUnit |
2 | 2 | import GSLHaskell | |
3 | import GSL | ||
4 | import GSL.Special hiding (exp) | ||
5 | import GSL.Matrix | ||
6 | import LinearAlgebra.Linear | ||
7 | import System.Random(randomRs,mkStdGen) | 3 | import System.Random(randomRs,mkStdGen) |
8 | 4 | ||
9 | realMatrix = fromLists :: [[Double]] -> Matrix Double | 5 | realMatrix = fromLists :: [[Double]] -> Matrix Double |
diff --git a/examples/tests.hs b/examples/tests.hs index 0d8361e..0a09ced 100644 --- a/examples/tests.hs +++ b/examples/tests.hs | |||
@@ -23,7 +23,7 @@ import Complex | |||
23 | import LinearAlgebra.Algorithms | 23 | import LinearAlgebra.Algorithms |
24 | import LinearAlgebra.Linear | 24 | import LinearAlgebra.Linear |
25 | import GSL.Matrix | 25 | import GSL.Matrix |
26 | import GSL.Compat hiding ((<>),constant) | 26 | import GSLHaskell hiding ((<>),constant) |
27 | 27 | ||
28 | dist :: (Normed t, Num t) => t -> t -> Double | 28 | dist :: (Normed t, Num t) => t -> t -> Double |
29 | dist a b = norm (a-b) | 29 | dist a b = norm (a-b) |