diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-08-25 16:29:37 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-08-25 16:29:37 +0000 |
commit | f541d7dbdc8338b1dd1c0538751d837a16740bd8 (patch) | |
tree | 02b3383ed3ffdb3f3f5c0f61ce0243c73e160a24 /lib/Numeric/LinearAlgebra/Tests/Instances.hs | |
parent | 2b5b266bb02c7205262bc8a0b584477b6043a112 (diff) |
simpler Container typeclass
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests/Instances.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Tests/Instances.hs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Numeric/LinearAlgebra/Tests/Instances.hs b/lib/Numeric/LinearAlgebra/Tests/Instances.hs index bfe6871..ad59b25 100644 --- a/lib/Numeric/LinearAlgebra/Tests/Instances.hs +++ b/lib/Numeric/LinearAlgebra/Tests/Instances.hs | |||
@@ -22,12 +22,11 @@ module Numeric.LinearAlgebra.Tests.Instances( | |||
22 | SqWC(..), rSqWC, cSqWC, | 22 | SqWC(..), rSqWC, cSqWC, |
23 | PosDef(..), rPosDef, cPosDef, | 23 | PosDef(..), rPosDef, cPosDef, |
24 | Consistent(..), rConsist, cConsist, | 24 | Consistent(..), rConsist, cConsist, |
25 | RM,CM, rM,cM | 25 | RM,CM, rM,cM, |
26 | FM,ZM, fM,zM | ||
26 | ) where | 27 | ) where |
27 | 28 | ||
28 | 29 | ||
29 | |||
30 | |||
31 | import Numeric.LinearAlgebra | 30 | import Numeric.LinearAlgebra |
32 | import Control.Monad(replicateM) | 31 | import Control.Monad(replicateM) |
33 | #include "quickCheckCompat.h" | 32 | #include "quickCheckCompat.h" |
@@ -212,9 +211,15 @@ instance (Field a, Arbitrary a) => Arbitrary (Consistent a) where | |||
212 | 211 | ||
213 | type RM = Matrix Double | 212 | type RM = Matrix Double |
214 | type CM = Matrix (Complex Double) | 213 | type CM = Matrix (Complex Double) |
214 | type FM = Matrix Float | ||
215 | type ZM = Matrix (Complex Float) | ||
216 | |||
215 | 217 | ||
216 | rM m = m :: RM | 218 | rM m = m :: RM |
217 | cM m = m :: CM | 219 | cM m = m :: CM |
220 | fM m = m :: FM | ||
221 | zM m = m :: ZM | ||
222 | |||
218 | 223 | ||
219 | rHer (Her m) = m :: RM | 224 | rHer (Her m) = m :: RM |
220 | cHer (Her m) = m :: CM | 225 | cHer (Her m) = m :: CM |