Commit Graph

6 Commits (2bc643cb84ac720042a6ee48414b4b4b64caac72)

Author SHA1 Message Date
Doug Coleman 9b6f58fc9e math.matrices: Add a diagonal-matrix word that makes an nxn matrix from a sequence.
Optimize identity-matrix word -- 2-3x faster using diagonal-matrix.
Add an eye word that makes an mxn diagonal matrix with a diagonal offset by k.
2012-05-04 11:31:05 -07:00
Slava Pestov 7fe6721993 math.matrices: move normal word from gpu.demos.bunny and reverse sign 2010-07-23 20:41:08 -07:00
Erik Charlebois fc72a7c7c1 Add perp and angle-between words for vectors. Fix bug in cross product and add unit tests. 2010-02-25 16:46:02 -08:00
Slava Pestov e5fc398dae sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate some duplication throughout the codebase 2010-02-25 20:54:57 +13:00
prunedtree 032820a0e8 unit test for m^n 2009-06-12 01:35:25 -07:00
Slava Pestov 9add08c200 Move math.matrices to basis 2009-04-18 04:09:16 -05:00