Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for basis blades that are non-canonical #428

Open
andydevs opened this issue Oct 17, 2023 · 1 comment
Open

Support for basis blades that are non-canonical #428

andydevs opened this issue Oct 17, 2023 · 1 comment

Comments

@andydevs
Copy link

andydevs commented Oct 17, 2023

I'd like for Clifford to have the ability to store MV's in basis blades that are out of order.

For example, 2D PGA has the bases blades in this order

e0 e1 e2 e01 e20 e12 e012

The e20 blade is out of order.

So I'd like to write something like the following

ids = BasisVectorIds.ordered_integers(3, first_index=0)
order = ids.order_from_tuples((), (0,), (1,), (2,), (0,1), (2,0), (1,2), (0,1,2))
...

This throws an error saying that The blade (2, 0) is not canonical and sign flips in storage are not supported.

@andydevs
Copy link
Author

I'm kind of new to this kind of algebra btw. Was learning about it from Bivector's channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant