]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Generalize 'Values' to n-dimensions; create type synonyms for n = 1,2,3.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 7 Sep 2011 22:56:55 +0000 (18:56 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 7 Sep 2011 22:56:55 +0000 (18:56 -0400)
src/Values.hs

index 070abbbf2554ea5eec5276e5496fe1554fcaf3d3..614fb75991359ff8f47c80969721a5bb75598d51 100644 (file)
@@ -26,9 +26,10 @@ import Test.QuickCheck (Arbitrary(..), Gen, choose, vectorOf)
 import ScaleFactor
 
 
-type Values1D = Array DIM1 Double
-type Values2D = Array DIM2 Double
-type Values3D = Array DIM3 Double
+type Values sh = Array sh Double
+type Values1D = Values DIM1
+type Values2D = Values DIM2
+type Values3D = Values DIM3
 
 
 instance Arbitrary Values3D where