summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests.hs b/lib/Numeric/LinearAlgebra/Tests.hs
index 91f6742..77bb2f7 100644
--- a/lib/Numeric/LinearAlgebra/Tests.hs
+++ b/lib/Numeric/LinearAlgebra/Tests.hs
@@ -168,7 +168,7 @@ fittingTest = utest "levmar" (ok1 && ok2)
168 sol = fst $ fitModel 1E-4 1E-4 20 (expModel, expModelDer) dat [1,0,0] 168 sol = fst $ fitModel 1E-4 1E-4 20 (expModel, expModelDer) dat [1,0,0]
169 169
170 ok1 = and (zipWith f sols [5,0.1,1]) where f (x,d) r = abs (x-r)<2*d 170 ok1 = and (zipWith f sols [5,0.1,1]) where f (x,d) r = abs (x-r)<2*d
171 ok2 = pnorm PNorm2 (fromList (map fst sols) - fromList sol) < 1E-5 171 ok2 = norm2 (fromList (map fst sols) - fromList sol) < 1E-5
172 172
173----------------------------------------------------- 173-----------------------------------------------------
174 174
@@ -318,7 +318,7 @@ runTests n = do
318 test (cholProp . rPosDef) 318 test (cholProp . rPosDef)
319 test (cholProp . cPosDef) 319 test (cholProp . cPosDef)
320 putStrLn "------ expm" 320 putStrLn "------ expm"
321 test (expmDiagProp . rSqWC) 321 test (expmDiagProp . complex. rSqWC)
322 test (expmDiagProp . cSqWC) 322 test (expmDiagProp . cSqWC)
323 putStrLn "------ fft" 323 putStrLn "------ fft"
324 test (\v -> ifft (fft v) |~| v) 324 test (\v -> ifft (fft v) |~| v)