summaryrefslogtreecommitdiff
path: root/lib/Numeric/LinearAlgebra/Tests/Instances.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-08-25 16:29:37 +0000
committerAlberto Ruiz <aruiz@um.es>2010-08-25 16:29:37 +0000
commitf541d7dbdc8338b1dd1c0538751d837a16740bd8 (patch)
tree02b3383ed3ffdb3f3f5c0f61ce0243c73e160a24 /lib/Numeric/LinearAlgebra/Tests/Instances.hs
parent2b5b266bb02c7205262bc8a0b584477b6043a112 (diff)
simpler Container typeclass
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Tests/Instances.hs')
-rw-r--r--lib/Numeric/LinearAlgebra/Tests/Instances.hs11
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
31import Numeric.LinearAlgebra 30import Numeric.LinearAlgebra
32import Control.Monad(replicateM) 31import 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
213type RM = Matrix Double 212type RM = Matrix Double
214type CM = Matrix (Complex Double) 213type CM = Matrix (Complex Double)
214type FM = Matrix Float
215type ZM = Matrix (Complex Float)
216
215 217
216rM m = m :: RM 218rM m = m :: RM
217cM m = m :: CM 219cM m = m :: CM
220fM m = m :: FM
221zM m = m :: ZM
222
218 223
219rHer (Her m) = m :: RM 224rHer (Her m) = m :: RM
220cHer (Her m) = m :: CM 225cHer (Her m) = m :: CM