Galixir.Generator.BasisNames (galixir v0.23.0)

Copy Markdown View Source

Summary

Functions

Generates functions mapping blade masks to their names.

Functions

basis_names_impl(bases)

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"