Open eric-wieser opened 4 years ago
This came up again, also of interest for ellipsoidal geometry, and probably other things.
So by simply removing .astype(int)
in https://github.com/pygae/clifford/blob/master/clifford/_layout.py#L330, seems to work to produce diagonal, but non-normal metric, ie elipsoidal geometry. here is a qualitative test
https://gist.github.com/arsenovic/45dc3df07e988aa1d68da78f0fd9f985
however, i am not sure why the .5 ratio of e1/e2 doesnt work, while a ratio of 2 does? (note you need the product to ==1 for rotations of given angles to make sense)
It would be neat if we could use a metric like:
ie having
no
andni
be basis blades in our algebra.I started prototyping this at https://gist.github.com/eric-wieser/56466e4bbfff9f05b3155e012c2afd7a, based on @abrombo's approach in #galgebra, but with optimizations for numerical values.
I do wonder whether there's a simpler approach that can be taken here based on the diagonalization discussed in "Geometric Algebra for Physicists" p.89.
Timing is looking promising, but perhaps something weird is going on in clifford: