summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2008-03-05 15:56:40 +0000
committerAlberto Ruiz <aruiz@um.es>2008-03-05 15:56:40 +0000
commit80be521adb679b3a41034269c35f0de4db698fab (patch)
treee9847d124453c7df4ea8cb27c4ef4fc150c93727 /lib/Numeric/LinearAlgebra/Tests
parent4761a5f2e70a2d82c90f1d7896ab4b3638c507a1 (diff)
add Intel's MKL support
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests/Properties.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests/Properties.hs b/lib/Numeric/LinearAlgebra/Tests/Properties.hs
index 566d038..55e9a1b 100644
--- a/lib/Numeric/LinearAlgebra/Tests/Properties.hs
+++ b/lib/Numeric/LinearAlgebra/Tests/Properties.hs
@@ -40,6 +40,9 @@ module Numeric.LinearAlgebra.Tests.Properties (
40import Numeric.LinearAlgebra 40import Numeric.LinearAlgebra
41import Numeric.LinearAlgebra.Tests.Instances(Sq(..),Her(..),Rot(..)) 41import Numeric.LinearAlgebra.Tests.Instances(Sq(..),Her(..),Rot(..))
42import Test.QuickCheck 42import Test.QuickCheck
43import Debug.Trace
44
45debug x = trace (show x) x
43 46
44-- relative error 47-- relative error
45dist :: (Normed t, Num t) => t -> t -> Double 48dist :: (Normed t, Num t) => t -> t -> Double
@@ -89,8 +92,9 @@ ones (r,c) = zeros (r,c) + 1
89 92
90----------------------------------------------------- 93-----------------------------------------------------
91 94
92luProp m = m |~| p <> l <> u && det p == s 95luProp m = m |~| p <> l <> u && f (det p) |~| f s
93 where (l,u,p,s) = lu m 96 where (l,u,p,s) = lu m
97 f x = fromList [x]
94 98
95invProp m = m <> inv m |~| ident (rows m) 99invProp m = m <> inv m |~| ident (rows m)
96 100