summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests/Properties.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-08-26 17:49:45 +0000
committerAlberto Ruiz <aruiz@um.es>2010-08-26 17:49:45 +0000
commit6058e1b17c005be1ea95ebb7d98d9fd15bb538d2 (patch)
treec4277e00c2c92a0ed8f3750255154fa8e2b6fe2d /lib/Numeric/LinearAlgebra/Tests/Properties.hs
parentf541d7dbdc8338b1dd1c0538751d837a16740bd8 (diff)
Float matrix product
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests/Properties.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests/Properties.hs6
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
45import Numeric.LinearAlgebra 45import Numeric.LinearAlgebra hiding (mulH)
46import Numeric.LinearAlgebra.LAPACK 46import Numeric.LinearAlgebra.LAPACK
47import Debug.Trace 47import Debug.Trace
48#include "quickCheckCompat.h" 48#include "quickCheckCompat.h"
@@ -237,9 +237,9 @@ expmDiagProp m = expm (logm m) :~ 7 ~: complex m
237mulH a b = fromLists [[ doth ai bj | bj <- toColumns b] | ai <- toRows a ] 237mulH 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
240multProp1 (a,b) = a <> b |~| mulH a b 240multProp1 p (a,b) = (a <> b) :~p~: (mulH a b)
241 241
242multProp2 (a,b) = ctrans (a <> b) |~| ctrans b <> ctrans a 242multProp2 p (a,b) = (ctrans (a <> b)) :~p~: (ctrans b <> ctrans a)
243 243
244linearSolveProp f m = f m m |~| ident (rows m) 244linearSolveProp f m = f m m |~| ident (rows m)
245 245