Galixir.Generator.Header (galixir v0.26.0)

Copy Markdown View Source

Generates the static header implementation for a Galixir algebra module.

This generator injects compile-time metadata and helper functions into an algebra implementation module. The generated metadata describes the algebra structure, including its metric signature, basis blade layout, multiplication table, and coefficient storage information.

The generated functions provide access to:

  • the number of stored coefficients
  • the algebra dimension
  • the metric signature
  • the precomputed geometric product table
  • the mapping between blade names and storage indices

The implementation is generated from a Galixir.Meta structure and is shared by all concrete algebra modules generated by Galixir.

The generated metadata is stored as module attributes to allow other generated operations to efficiently access compile-time constants without recomputing them.