biVector forum

Bug in generator

On https://bivector.net/tools.html I selected 2, 0, 1 algebra, and downloaded the python file. It’s missing subs method which is used in sub method. I’d open an issue on github but I’m not sure which repo holds this generator - it would be nice to link to the github repo from https://bivector.net/tools.html.

The file that generates the python code is https://github.com/enkimute/ganja.js/blob/master/codegen/py.template.js.

Having said that, if you want to work with GA in python and not just tweak a reference implementation, I’d recommend using pip install clifford (disclaimer: I am one of the maintainers)

1 Like

While I should (and will) obviously fix that bug in the generator, I fully agree with @eric-wieser here - these reference implementations are intended to fill a void. They are for that phase where you’ve just discovered GA and need a minimal view that just shows you what gets multiplied where. They intentionally ignore all performance and other design considerations. For any actual applications, we have a list of actively maintained libraries that do attempt to be practically usable.

For python, that is clifford. I’m not a maintainer. Its good stuff.