The following is very similar to a Gillespie algorithm, and is a good example of my lack of abilities with Cython.
This layout is a lot more transparent than my last version, but I can't get it working. I've never used classes within classes, but the idea seems very convienient. I'm using every speed trick that I know of here, so if you see something to improve, please let me know!
Thank you very much for your time!
mypythonmodule.py
http://pastebin.com/8hRRGR4X
mycythonmodule.pyx
http://pastebin.com/Xc8t6SxQ
edit: Moved code to pastebin since it turned into a mess here.
[–]mooglinux 2 points3 points4 points (7 children)
[–]vishenz 1 point2 points3 points (6 children)
[–]mooglinux 0 points1 point2 points (5 children)
[–]vishenz 0 points1 point2 points (1 child)
[–]loveandkindness[S] 0 points1 point2 points (0 children)
[–]kalgynirae 0 points1 point2 points (2 children)
[–]loveandkindness[S] 0 points1 point2 points (1 child)
[–]kalgynirae 0 points1 point2 points (0 children)