X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTests%2FGrid.hs;h=fbe8bc1c6a3821f25438f8087fc257e1a3289b3f;hb=ea92f7319ba4350715e2397928def15f574d9d8c;hp=6fdbb133a6ee70a4b6a6259493b58aee2d8ab939;hpb=76ff394c3e5a551e2a6bbf51fbee4e91b90b1611;p=spline3.git diff --git a/src/Tests/Grid.hs b/src/Tests/Grid.hs index 6fdbb13..fbe8bc1 100644 --- a/src/Tests/Grid.hs +++ b/src/Tests/Grid.hs @@ -7,6 +7,7 @@ import Test.QuickCheck import Assertions import Cube +import Examples import Grid import Tetrahedron @@ -18,20 +19,6 @@ instance Arbitrary Grid where return (make_grid h' fvs) --- | Values of the function f(x,y,z) = 1 + x + xy + xyz taken at nine --- points (hi, hj, jk) with h = 1. From example one in the paper. --- Used in the next bunch of tests. -trilinear :: [[[Double]]] -trilinear = [ [ [ 1, 2, 3 ], - [ 1, 3, 5 ], - [ 1, 4, 7 ] ], - [ [ 1, 2, 3 ], - [ 1, 4, 7 ], - [ 1, 6, 11 ] ], - [ [ 1, 2, 3 ], - [ 1, 5, 9 ], - [ 1, 8, 15 ]]] - -- | Check the value of c0030 for tetrahedron0 belonging to the -- cube centered on (1,1,1) with a grid constructed from the -- trilinear values. See example one in the paper.