Commit Graph

7 Commits (fb8c547ec2268c3a93a1ca3db256e247186d0e20)

Author SHA1 Message Date
jan fb8c547ec2 Clean up imports 8 years ago
jan c7f551b0b7 Use complex number representation for vertex coordinates,
ie. (x, y) becomes x + iy. This gives a bit of a speedup
over repeating stuff for multiple arrays, and lets you
keep using the numpy +- operators (unlike structured
numpy arrays)
8 years ago
jan d418ff149d Perform [(x,y,v),...] -> ndarray conversion using complex numbers
Factor-of-2 speedup on code that currently takes ~20% of the runtime --
turns out cache is good stuff.
8 years ago
jan caf51d72ba Remove unused code for matlab interface 8 years ago
jan 12fdc5401e Use scipy.sparse.coo_matrix instead of numpy.histogram2d to get a decent speedup 8 years ago
jan f68555cb0b Switch to >= <= operators instead of functions
For clarity
8 years ago
jan ed77450c80 add all files 8 years ago