summaryrefslogtreecommitdiff
path: root/examples/oldtests.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/oldtests.hs')
-rw-r--r--examples/oldtests.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/oldtests.hs b/examples/oldtests.hs
index 987ef98..1f1ca25 100644
--- a/examples/oldtests.hs
+++ b/examples/oldtests.hs
@@ -10,7 +10,7 @@ realVector = fromList :: [Double] -> Vector Double
10toComplexM = uncurry $ liftMatrix2 (curry toComplex) 10toComplexM = uncurry $ liftMatrix2 (curry toComplex)
11 11
12infixl 2 =~= 12infixl 2 =~=
13a =~= b = pnorm PNorm1 (flatten (a - b)) < 1E-6 13a =~= b = pnorm 1 (flatten (a - b)) < 1E-6
14 14
15randomMatrix seed (n,m) = reshape m $ realVector $ take (n*m) $ randomRs (-100,100) $ mkStdGen seed 15randomMatrix seed (n,m) = reshape m $ realVector $ take (n*m) $ randomRs (-100,100) $ mkStdGen seed
16 16