Skip to content

Support for basis blades that are non-canonical #428

@andydevs

Description

@andydevs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions