diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-10-02 15:53:10 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-10-02 15:53:10 +0000 |
commit | 192ac5f4b98517862c37ecf161505396ad223cd8 (patch) | |
tree | 811312f28bca2bd18d282bc0be732a17cd8dbcd7 /lib/Numeric/LinearAlgebra/Tests/Properties.hs | |
parent | 9c6b2af0066f7608301ad685ea5e60753fc3b6ff (diff) |
alternative multiply versions
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests/Properties.hs')
-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 55e9a1b..5663b86 100644 --- a/lib/Numeric/LinearAlgebra/Tests/Properties.hs +++ b/lib/Numeric/LinearAlgebra/Tests/Properties.hs | |||
@@ -34,7 +34,8 @@ module Numeric.LinearAlgebra.Tests.Properties ( | |||
34 | hessProp, | 34 | hessProp, |
35 | schurProp1, schurProp2, | 35 | schurProp1, schurProp2, |
36 | cholProp, | 36 | cholProp, |
37 | expmDiagProp | 37 | expmDiagProp, |
38 | multProp1, multProp2 | ||
38 | ) where | 39 | ) where |
39 | 40 | ||
40 | import Numeric.LinearAlgebra | 41 | import Numeric.LinearAlgebra |
@@ -151,3 +152,6 @@ cholProp m = m |~| ctrans c <> c && upperTriang c | |||
151 | expmDiagProp m = expm (logm m) :~ 7 ~: complex m | 152 | expmDiagProp m = expm (logm m) :~ 7 ~: complex m |
152 | where logm m = matFunc log m | 153 | where logm m = matFunc log m |
153 | 154 | ||
155 | multProp1 (a,b) = a <> b |~| mulH a b | ||
156 | |||
157 | multProp2 (a,b) = trans (a <> b) |~| trans b <> trans a | ||