Generates functions that map basis-blade masks to their canonical names.
Summary
Functions
Generates functions mapping blade masks to their names.
Functions
Generates functions mapping blade masks to their names.
The generated functions have the form:
basis_name(mask)and return the canonical name of a basis blade.
The scalar blade is represented by an empty name.
Examples
Given:
bases: {1, 2, 3}this generates:
basis_name(0) # => ""
basis_name(1) # => "e1"
basis_name(3) # => "e12"
basis_name(7) # => "e123"