(Resent because of mail screwup.)
On May 21, 2014, at 9:15 AM, Tomas Möre tomas.o.more@gmail.com wrote:
Since modern OpenGL requires some hefty matrix math I need to make a matrix math library. Since I want this to be multi platform compatible and easy to use even in the interpreter. I have to do all this in scheme. (Except we're forced to allocate the the scheme binary vectors in c to make them not move during garbage collection)
But back to business! I've made the following macro and procedure to test matrix multiplication
(To test simply copy paste into interpreter)
But as you will se on the test i've added on the last row of code this is a pretty "slow" procedure.
The question is, How do you make this quicker?
Model it on tfo-combine in bench/src/nucleic.scm after untarring misc/bench.tgz in the gambit source directory.
Brad