]> gitweb.michael.orlitzky.com - spline3.git/log
spline3.git
13 years agoGeneralize 'Values' to n-dimensions; create type synonyms for n = 1,2,3.
Michael Orlitzky [Wed, 7 Sep 2011 22:56:55 +0000 (18:56 -0400)]
Generalize  'Values' to n-dimensions; create type synonyms for n = 1,2,3.

13 years agoAdd the MRI code as it is after its first successful output.
Michael Orlitzky [Wed, 7 Sep 2011 19:58:40 +0000 (15:58 -0400)]
Add the MRI code as it is after its first successful output.

13 years agoMerge branch 'uncached_vector'
Michael Orlitzky [Wed, 7 Sep 2011 06:07:24 +0000 (02:07 -0400)]
Merge branch 'uncached_vector'

Conflicts:
spline3/src/Main.hs

13 years agoFix a comment.
Michael Orlitzky [Wed, 7 Sep 2011 06:04:11 +0000 (02:04 -0400)]
Fix a comment.

13 years agoUse unsafe versions of index and traverse.
Michael Orlitzky [Wed, 7 Sep 2011 05:26:41 +0000 (01:26 -0400)]
Use unsafe versions of index and traverse.

13 years agoConvert the polynomial sum to a vector sum.
Michael Orlitzky [Wed, 7 Sep 2011 04:07:28 +0000 (00:07 -0400)]
Convert the polynomial sum to a vector sum.

13 years agoSet zoom to 4x.
Michael Orlitzky [Wed, 7 Sep 2011 01:39:51 +0000 (21:39 -0400)]
Set zoom to 4x.

13 years ago4x, completely uncached.
Michael Orlitzky [Wed, 7 Sep 2011 01:39:14 +0000 (21:39 -0400)]
4x, completely uncached.

13 years agoFix the one failing test and its documentation.
Michael Orlitzky [Tue, 6 Sep 2011 17:27:27 +0000 (13:27 -0400)]
Fix the one failing test and its documentation.

13 years agoFix a few test warnings and one documentation warning.
Michael Orlitzky [Tue, 6 Sep 2011 17:11:13 +0000 (13:11 -0400)]
Fix a few test warnings and one documentation warning.

13 years agoChange some names in the test suite.
Michael Orlitzky [Mon, 5 Sep 2011 22:59:07 +0000 (18:59 -0400)]
Change some names in the test suite.

13 years agoUpdate the 'disjoint' function to work on Vectors instead of lists.
Michael Orlitzky [Mon, 5 Sep 2011 22:58:40 +0000 (18:58 -0400)]
Update the 'disjoint' function to work on Vectors instead of lists.

13 years agoUpdate the Cube tests to match the new code.
Michael Orlitzky [Mon, 5 Sep 2011 22:55:36 +0000 (18:55 -0400)]
Update the Cube tests to match the new code.

13 years agoAdd back an accidentally-deleted line.
Michael Orlitzky [Mon, 5 Sep 2011 22:55:17 +0000 (18:55 -0400)]
Add back an accidentally-deleted line.

13 years agoSpeed up the find_containing_tetrahedron function by using Data.Vector.
Michael Orlitzky [Mon, 5 Sep 2011 22:31:25 +0000 (18:31 -0400)]
Speed up the find_containing_tetrahedron function by using Data.Vector.

13 years agoUse pattern matching in the 'center' function. Might speed things up?
Michael Orlitzky [Mon, 5 Sep 2011 21:19:26 +0000 (17:19 -0400)]
Use pattern matching in the 'center' function. Might speed things up?
Add the Tetrahedron number to its show output.

13 years agoAdd the 'dot' function for Points.
Michael Orlitzky [Mon, 5 Sep 2011 21:18:57 +0000 (17:18 -0400)]
Add the 'dot' function for Points.

13 years agoMake a LLVM/GCC distinction in the profile targets.
Michael Orlitzky [Mon, 5 Sep 2011 21:04:31 +0000 (17:04 -0400)]
Make a LLVM/GCC distinction in the profile targets.

13 years agoMemoize the zoom function via PolynomialArray.
Michael Orlitzky [Sun, 4 Sep 2011 13:03:47 +0000 (09:03 -0400)]
Memoize the zoom function via PolynomialArray.

13 years agoFix the Cube tests re: the 'tetrahedron' change.
Michael Orlitzky [Sun, 4 Sep 2011 13:02:47 +0000 (09:02 -0400)]
Fix the Cube tests re: the 'tetrahedron' change.

13 years agoUse one top-level function, 'tetrahedron', and take an Int parameter rather than...
Michael Orlitzky [Sun, 4 Sep 2011 13:02:01 +0000 (09:02 -0400)]
Use one top-level function, 'tetrahedron', and take an Int parameter rather than enumerating 24 different functions.

13 years agoAdd the "number" field for tetrahedra.
Michael Orlitzky [Sun, 4 Sep 2011 12:37:23 +0000 (08:37 -0400)]
Add the "number" field for tetrahedra.

13 years agoAdd the PolynomialArray module.
Michael Orlitzky [Sun, 4 Sep 2011 12:22:53 +0000 (08:22 -0400)]
Add the PolynomialArray module.

13 years agoAdd another TODO.
Michael Orlitzky [Sun, 4 Sep 2011 12:01:42 +0000 (08:01 -0400)]
Add another TODO.

13 years agoMove the Grid tests into the Grid module.
Michael Orlitzky [Sun, 4 Sep 2011 00:11:02 +0000 (20:11 -0400)]
Move the Grid tests into the Grid module.

13 years agoMove the Cardinal tests into the Cardinal module.
Michael Orlitzky [Sat, 3 Sep 2011 23:49:37 +0000 (19:49 -0400)]
Move the Cardinal tests into the Cardinal module.

13 years agoA bunch more test cleanup.
Michael Orlitzky [Sat, 3 Sep 2011 22:40:14 +0000 (18:40 -0400)]
A bunch more test cleanup.

13 years agoDefault to compiling with llvm.
Michael Orlitzky [Sat, 3 Sep 2011 20:55:40 +0000 (16:55 -0400)]
Default to compiling with llvm.
Add a 'gcc' makefile target.

13 years agoMove the FunctionValues tests into the FunctionValues module.
Michael Orlitzky [Sat, 3 Sep 2011 20:54:53 +0000 (16:54 -0400)]
Move the FunctionValues tests into the FunctionValues module.

13 years agoAdd some C optimizations.
Michael Orlitzky [Sat, 3 Sep 2011 14:56:03 +0000 (10:56 -0400)]
Add some C optimizations.
Minor makefile cleanup.

13 years agoOnly compute 'cubes' once, and store it in a new Grid field, cube_grid.
Michael Orlitzky [Fri, 2 Sep 2011 16:58:40 +0000 (12:58 -0400)]
Only compute 'cubes' once, and store it in a new Grid field, cube_grid.

13 years agoFix (I think) the cube offset issue.
Michael Orlitzky [Fri, 2 Sep 2011 16:41:17 +0000 (12:41 -0400)]
Fix (I think) the cube offset issue.

13 years agoFinish the precomputed_volume optimization.
Michael Orlitzky [Fri, 2 Sep 2011 15:03:12 +0000 (11:03 -0400)]
Finish the precomputed_volume optimization.

13 years agoFix a few test warnings.
Michael Orlitzky [Fri, 2 Sep 2011 14:48:40 +0000 (10:48 -0400)]
Fix a few test warnings.

13 years agoBegin writing the precomputed_volume feature again.
Michael Orlitzky [Fri, 2 Sep 2011 14:47:06 +0000 (10:47 -0400)]
Begin writing the precomputed_volume feature again.

13 years agoRevert "Attempt to use precomputed volumes everywhere, tests fail en masse."
Michael Orlitzky [Fri, 2 Sep 2011 14:35:06 +0000 (10:35 -0400)]
Revert "Attempt to use precomputed volumes everywhere, tests fail en masse."

This reverts commit ffc644b4eaf951619bfe59a2050f455814263cb2.

13 years agoAttempt to use precomputed volumes everywhere, tests fail en masse.
Michael Orlitzky [Fri, 2 Sep 2011 13:34:42 +0000 (09:34 -0400)]
Attempt to use precomputed volumes everywhere, tests fail en masse.

13 years agoAdd a new test group, slow_tests, that is run after all of the others.
Michael Orlitzky [Fri, 2 Sep 2011 13:16:16 +0000 (09:16 -0400)]
Add a new test group, slow_tests, that is run after all of the others.

13 years agoMake test_trilinear9x9x9_reproduced slow again.
Michael Orlitzky [Fri, 2 Sep 2011 13:15:12 +0000 (09:15 -0400)]
Make test_trilinear9x9x9_reproduced slow again.
Add a new failing test: prop_cube_indices_never_go_out_of_bounds.

13 years agoAdd another guard on calculate_containing_cube_coordinate.
Michael Orlitzky [Fri, 2 Sep 2011 13:13:55 +0000 (09:13 -0400)]
Add another guard on calculate_containing_cube_coordinate.

13 years agoLimit the size of arbitrary Values3D, and prevent empty dimensions.
Michael Orlitzky [Fri, 2 Sep 2011 13:09:23 +0000 (09:09 -0400)]
Limit the size of arbitrary Values3D, and prevent empty dimensions.

13 years agoFix the broken Arbitrary instance of Values3D.
Michael Orlitzky [Fri, 2 Sep 2011 03:17:15 +0000 (23:17 -0400)]
Fix the broken Arbitrary instance of Values3D.

13 years agoSpeed up the Tetrahedron contains_point function by dropping the useless factor of...
Michael Orlitzky [Fri, 2 Sep 2011 02:13:04 +0000 (22:13 -0400)]
Speed up the Tetrahedron contains_point function by dropping the useless factor of its volume.

13 years agoUse an IArray for the cubes and cube_at functions.
Michael Orlitzky [Fri, 2 Sep 2011 00:23:57 +0000 (20:23 -0400)]
Use an IArray for the cubes and cube_at functions.

13 years agoAdd the data folder with a .gitignore.
Michael Orlitzky [Thu, 1 Sep 2011 17:20:09 +0000 (13:20 -0400)]
Add the data folder with a .gitignore.

13 years agoAdd tests for some functions used in the new 'find_containing_tetrahedron'.
Michael Orlitzky [Thu, 1 Sep 2011 17:02:23 +0000 (13:02 -0400)]
Add tests for some functions used in the new 'find_containing_tetrahedron'.

13 years agoReplace the 'find_containing_tetrahedra' function with a more-efficient 'find_contain...
Michael Orlitzky [Thu, 1 Sep 2011 17:01:45 +0000 (13:01 -0400)]
Replace the 'find_containing_tetrahedra' function with a more-efficient 'find_containing_tetrahedron'.

13 years agoAdd the 'disjoint' function.
Michael Orlitzky [Thu, 1 Sep 2011 16:58:37 +0000 (12:58 -0400)]
Add the 'disjoint' function.

13 years agoEven more Tetrahedron de-dupe.
Michael Orlitzky [Wed, 31 Aug 2011 18:14:26 +0000 (14:14 -0400)]
Even more Tetrahedron de-dupe.

13 years agoRemove some completed TODO entries.
Michael Orlitzky [Wed, 31 Aug 2011 18:03:58 +0000 (14:03 -0400)]
Remove some completed TODO entries.

13 years agoSpeed up the trilinear9x9x9 test.
Michael Orlitzky [Wed, 31 Aug 2011 18:02:12 +0000 (14:02 -0400)]
Speed up the trilinear9x9x9 test.

13 years agoDe-dupe some more Tetrahedron tests.
Michael Orlitzky [Wed, 31 Aug 2011 17:59:32 +0000 (13:59 -0400)]
De-dupe some more Tetrahedron tests.

13 years agoAdd -fno-spec-constr-count to the GHC command line.
Michael Orlitzky [Wed, 31 Aug 2011 13:28:46 +0000 (09:28 -0400)]
Add -fno-spec-constr-count to the GHC command line.

13 years agoCombine some Tetrahedron tests.
Michael Orlitzky [Tue, 30 Aug 2011 20:47:28 +0000 (16:47 -0400)]
Combine some Tetrahedron tests.
Whitespace cleanup.

13 years agoReduce more duplication in the Grid tests.
Michael Orlitzky [Tue, 30 Aug 2011 18:30:35 +0000 (14:30 -0400)]
Reduce more duplication in the Grid tests.

13 years agoFix two minor hLint warnings.
Michael Orlitzky [Tue, 30 Aug 2011 18:17:26 +0000 (14:17 -0400)]
Fix two minor hLint warnings.

13 years agoCombine a bunch of Grid tests into a Test.Framework testGroup so that we can take...
Michael Orlitzky [Tue, 30 Aug 2011 17:29:44 +0000 (13:29 -0400)]
Combine a bunch of Grid tests into a Test.Framework testGroup so that we can take advantage of local variable reuse.

13 years agoFix some more hLint warnings.
Michael Orlitzky [Tue, 30 Aug 2011 11:34:37 +0000 (07:34 -0400)]
Fix some more hLint warnings.

13 years agoClean up some hLint warnings.
Michael Orlitzky [Mon, 29 Aug 2011 23:14:55 +0000 (19:14 -0400)]
Clean up some hLint warnings.

13 years agoAdd the current Main module, which works alrightish.
Michael Orlitzky [Mon, 29 Aug 2011 23:09:28 +0000 (19:09 -0400)]
Add the current Main module, which works alrightish.

13 years agoModify the Grid module to use ScaleFactors.
Michael Orlitzky [Mon, 29 Aug 2011 23:06:38 +0000 (19:06 -0400)]
Modify the Grid module to use ScaleFactors.

13 years agoModify the Values module to use ScaleFactors instead of Ints.
Michael Orlitzky [Mon, 29 Aug 2011 23:02:31 +0000 (19:02 -0400)]
Modify the Values module to use ScaleFactors instead of Ints.

13 years agoIncrease theta by an order of magnitude, fixing one particularly bad case.
Michael Orlitzky [Mon, 29 Aug 2011 23:01:54 +0000 (19:01 -0400)]
Increase theta by an order of magnitude, fixing one particularly bad case.

13 years agoAdd the ScaleFactor module and type, allowing us to scale (x,y,z) independently.
Michael Orlitzky [Mon, 29 Aug 2011 23:01:21 +0000 (19:01 -0400)]
Add the ScaleFactor module and type, allowing us to scale (x,y,z) independently.

13 years agoTranspose all of the example lists.
Michael Orlitzky [Sun, 28 Aug 2011 22:55:02 +0000 (18:55 -0400)]
Transpose all of the example lists.

13 years agoAdd the Misc.transpose_xz function.
Michael Orlitzky [Sun, 28 Aug 2011 22:49:43 +0000 (18:49 -0400)]
Add the Misc.transpose_xz function.

13 years agoUn-transpose the x,z coordinates in the Values.idx function.
Michael Orlitzky [Sun, 28 Aug 2011 22:48:43 +0000 (18:48 -0400)]
Un-transpose the x,z coordinates in the Values.idx function.

13 years agoFix the tetrahedron collision detection.
Michael Orlitzky [Sun, 28 Aug 2011 21:45:07 +0000 (17:45 -0400)]
Fix the tetrahedron collision detection.
Update the test for the collision detection (it was wrong).

13 years agoAdd the theta tolerance and nearly_equals, nearly_ge comparisons.
Michael Orlitzky [Sun, 28 Aug 2011 01:13:03 +0000 (21:13 -0400)]
Add the theta tolerance and nearly_equals, nearly_ge comparisons.

13 years agoMove the tetrahedra collision sensitivity test before the tests that take a long...
Michael Orlitzky [Sun, 28 Aug 2011 01:12:30 +0000 (21:12 -0400)]
Move the tetrahedra collision sensitivity test before the tests that take a long time.

13 years agoAdd another 1x20x1 example vector.
Michael Orlitzky [Sun, 28 Aug 2011 01:12:00 +0000 (21:12 -0400)]
Add another 1x20x1 example vector.

13 years agoMake cube_at either return a cube or error instead of returning a (Maybe Cube).
Michael Orlitzky [Sun, 28 Aug 2011 00:04:20 +0000 (20:04 -0400)]
Make cube_at either return a cube or error instead of returning a (Maybe Cube).

13 years agoAdd a test: test_tetrahedra_collision_sensitivity.
Michael Orlitzky [Sat, 27 Aug 2011 23:49:51 +0000 (19:49 -0400)]
Add a test: test_tetrahedra_collision_sensitivity.

13 years agoAdd the Values module to Everything.
Michael Orlitzky [Sat, 27 Aug 2011 23:08:20 +0000 (19:08 -0400)]
Add the Values module to Everything.

13 years agoCorrect an error in the value_at function.
Michael Orlitzky [Fri, 26 Aug 2011 14:30:38 +0000 (10:30 -0400)]
Correct an error in the value_at function.
Add some doctests for the value_at function.

13 years agoChoose a nearby value instead of zero when asked for a nonexistent function value.
Michael Orlitzky [Fri, 26 Aug 2011 07:40:19 +0000 (03:40 -0400)]
Choose a nearby value instead of zero when asked for a nonexistent function value.

13 years agoReplace TypeSynonymInstances with FlexibleInstances (makes GHC 7.2.1 happy) everywhere.
Michael Orlitzky [Wed, 24 Aug 2011 20:21:27 +0000 (16:21 -0400)]
Replace TypeSynonymInstances with FlexibleInstances (makes GHC 7.2.1 happy) everywhere.

13 years agoRemove an unused Misc import.
Michael Orlitzky [Wed, 24 Aug 2011 17:06:46 +0000 (13:06 -0400)]
Remove an unused Misc import.
Switch the 'x' and 'z' axes of cube_at.
Fix calculate_containing_cube_coordinate so that it actually works.

13 years agoInline the two inner functions of the zoom traversal.
Michael Orlitzky [Wed, 24 Aug 2011 17:05:46 +0000 (13:05 -0400)]
Inline the two inner functions of the zoom traversal.

13 years agoRemove the x_coord, y_coord, and z_coord functions from Point.
Michael Orlitzky [Wed, 24 Aug 2011 16:40:43 +0000 (12:40 -0400)]
Remove the x_coord, y_coord, and z_coord functions from Point.

13 years agoChange "find_containing_cubes" to "find_containing_cube" and speed it up considerably.
Michael Orlitzky [Wed, 24 Aug 2011 14:53:28 +0000 (10:53 -0400)]
Change "find_containing_cubes" to "find_containing_cube" and speed it up considerably.

13 years agoUndo the previous FunctionValues test fix.
Michael Orlitzky [Wed, 24 Aug 2011 14:12:52 +0000 (10:12 -0400)]
Undo the previous FunctionValues test fix.
Update the Values.idx function to silently switch the 'x' and 'z' dimensions.

13 years agoRename example names to 'examples_list' and 'examples' instead of 'examples' and...
Michael Orlitzky [Wed, 24 Aug 2011 14:11:54 +0000 (10:11 -0400)]
Rename example names to 'examples_list' and 'examples' instead of 'examples' and 'examples_repa' respectively. This prevents having to update all of the test code.

13 years agoStart converting the tests to Repa.
Michael Orlitzky [Tue, 23 Aug 2011 21:41:04 +0000 (17:41 -0400)]
Start converting the tests to Repa.

13 years agoThrow an error when comparing two RealFunctions for equality.
Michael Orlitzky [Tue, 23 Aug 2011 20:28:56 +0000 (16:28 -0400)]
Throw an error when comparing two RealFunctions for equality.
Print RealFunctions within angled brackets, i.e. "<RealFunction>".

13 years agoConvert the zoom function to use Values3D.
Michael Orlitzky [Tue, 23 Aug 2011 20:24:32 +0000 (16:24 -0400)]
Convert the zoom function to use Values3D.

13 years agoWrite the output file in main.
Michael Orlitzky [Tue, 23 Aug 2011 20:23:58 +0000 (16:23 -0400)]
Write the output file in main.

13 years agoBegin updating everything to use Repa arrays (Values3D).
Michael Orlitzky [Tue, 23 Aug 2011 18:40:35 +0000 (14:40 -0400)]
Begin updating everything to use Repa arrays (Values3D).

13 years agoAdd "-threaded" to GHC_OPTIONS.
Michael Orlitzky [Tue, 23 Aug 2011 18:38:41 +0000 (14:38 -0400)]
Add "-threaded" to GHC_OPTIONS.

13 years agoAdd the Values module, wrapping the Repa stuff.
Michael Orlitzky [Tue, 23 Aug 2011 16:54:19 +0000 (12:54 -0400)]
Add the Values module, wrapping the Repa stuff.

13 years agoBegin playing with Repa.
Michael Orlitzky [Tue, 23 Aug 2011 03:07:00 +0000 (23:07 -0400)]
Begin playing with Repa.

13 years agoAdd "-rtsopts" to my GHC_OPTIONS.
Michael Orlitzky [Tue, 23 Aug 2011 03:05:34 +0000 (23:05 -0400)]
Add "-rtsopts" to my GHC_OPTIONS.

13 years agoRemove two unused variables.
Michael Orlitzky [Mon, 22 Aug 2011 23:56:48 +0000 (19:56 -0400)]
Remove two unused variables.

13 years agoAdd the trilinear_zoom_2 example.
Michael Orlitzky [Mon, 22 Aug 2011 19:49:11 +0000 (15:49 -0400)]
Add the trilinear_zoom_2 example.
Fix a comment.

13 years agoFix the "clean" target in the makefile to remove *.hi and *.o files from /tmp.
Michael Orlitzky [Mon, 22 Aug 2011 19:38:24 +0000 (15:38 -0400)]
Fix the "clean" target in the makefile to remove *.hi and *.o files from /tmp.

13 years agoAdd the "zoom" function.
Michael Orlitzky [Mon, 22 Aug 2011 19:33:28 +0000 (15:33 -0400)]
Add the "zoom" function.

13 years agoRename "trilinearx2" to "trilinear9x9x9".
Michael Orlitzky [Mon, 22 Aug 2011 19:06:38 +0000 (15:06 -0400)]
Rename "trilinearx2" to "trilinear9x9x9".

13 years agoRemove the individual tetrahedron positive volume tests.
Michael Orlitzky [Mon, 22 Aug 2011 18:07:29 +0000 (14:07 -0400)]
Remove the individual tetrahedron positive volume tests.

13 years agoReplace individual tetrahedron volume tests with combined ones.
Michael Orlitzky [Mon, 22 Aug 2011 18:02:49 +0000 (14:02 -0400)]
Replace individual tetrahedron volume tests with combined ones.

13 years agoRename "tetrahedrons" to "tetrahedra".
Michael Orlitzky [Mon, 22 Aug 2011 17:57:56 +0000 (13:57 -0400)]
Rename "tetrahedrons" to "tetrahedra".