diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-03-05 15:56:40 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-03-05 15:56:40 +0000 |
commit | 80be521adb679b3a41034269c35f0de4db698fab (patch) | |
tree | e9847d124453c7df4ea8cb27c4ef4fc150c93727 /lib/Numeric/LinearAlgebra/Tests | |
parent | 4761a5f2e70a2d82c90f1d7896ab4b3638c507a1 (diff) |
add Intel's MKL support
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests/Properties.hs | 6 |
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 ( | |||
40 | import Numeric.LinearAlgebra | 40 | import Numeric.LinearAlgebra |
41 | import Numeric.LinearAlgebra.Tests.Instances(Sq(..),Her(..),Rot(..)) | 41 | import Numeric.LinearAlgebra.Tests.Instances(Sq(..),Her(..),Rot(..)) |
42 | import Test.QuickCheck | 42 | import Test.QuickCheck |
43 | import Debug.Trace | ||
44 | |||
45 | debug x = trace (show x) x | ||
43 | 46 | ||
44 | -- relative error | 47 | -- relative error |
45 | dist :: (Normed t, Num t) => t -> t -> Double | 48 | dist :: (Normed t, Num t) => t -> t -> Double |
@@ -89,8 +92,9 @@ ones (r,c) = zeros (r,c) + 1 | |||
89 | 92 | ||
90 | ----------------------------------------------------- | 93 | ----------------------------------------------------- |
91 | 94 | ||
92 | luProp m = m |~| p <> l <> u && det p == s | 95 | luProp 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 | ||
95 | invProp m = m <> inv m |~| ident (rows m) | 99 | invProp m = m <> inv m |~| ident (rows m) |
96 | 100 | ||