diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-08-26 17:49:45 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-08-26 17:49:45 +0000 |
commit | 6058e1b17c005be1ea95ebb7d98d9fd15bb538d2 (patch) | |
tree | c4277e00c2c92a0ed8f3750255154fa8e2b6fe2d /lib/Numeric/LinearAlgebra/Tests/Properties.hs | |
parent | f541d7dbdc8338b1dd1c0538751d837a16740bd8 (diff) |
Float matrix product
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests/Properties.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests/Properties.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests/Properties.hs b/lib/Numeric/LinearAlgebra/Tests/Properties.hs index d29e19a..f7a948e 100644 --- a/lib/Numeric/LinearAlgebra/Tests/Properties.hs +++ b/lib/Numeric/LinearAlgebra/Tests/Properties.hs | |||
@@ -42,7 +42,7 @@ module Numeric.LinearAlgebra.Tests.Properties ( | |||
42 | linearSolveProp, linearSolveProp2 | 42 | linearSolveProp, linearSolveProp2 |
43 | ) where | 43 | ) where |
44 | 44 | ||
45 | import Numeric.LinearAlgebra | 45 | import Numeric.LinearAlgebra hiding (mulH) |
46 | import Numeric.LinearAlgebra.LAPACK | 46 | import Numeric.LinearAlgebra.LAPACK |
47 | import Debug.Trace | 47 | import Debug.Trace |
48 | #include "quickCheckCompat.h" | 48 | #include "quickCheckCompat.h" |
@@ -237,9 +237,9 @@ expmDiagProp m = expm (logm m) :~ 7 ~: complex m | |||
237 | mulH a b = fromLists [[ doth ai bj | bj <- toColumns b] | ai <- toRows a ] | 237 | mulH a b = fromLists [[ doth ai bj | bj <- toColumns b] | ai <- toRows a ] |
238 | where doth u v = sum $ zipWith (*) (toList u) (toList v) | 238 | where doth u v = sum $ zipWith (*) (toList u) (toList v) |
239 | 239 | ||
240 | multProp1 (a,b) = a <> b |~| mulH a b | 240 | multProp1 p (a,b) = (a <> b) :~p~: (mulH a b) |
241 | 241 | ||
242 | multProp2 (a,b) = ctrans (a <> b) |~| ctrans b <> ctrans a | 242 | multProp2 p (a,b) = (ctrans (a <> b)) :~p~: (ctrans b <> ctrans a) |
243 | 243 | ||
244 | linearSolveProp f m = f m m |~| ident (rows m) | 244 | linearSolveProp f m = f m m |~| ident (rows m) |
245 | 245 | ||