fhelium.backend.triton._ntt_codegen
Generate compact NTT endpoint stages with fused component expressions.
compile_endpoint
function View source
python
def compile_endpoint(source: str) -> Any: ...1
Make generated Triton source inspectable without a source-tree file.
StageEmitter
class View source
python
StageEmitter(*, n: int, start: int, end: int, inverse: bool, tiled: bool)1
Emit exact compact-table butterflies for one stage interval.
Tiled intervals exchange lanes through reshapes and permutations. Global intervals keep a register tuple per lane, matching grouped native stages. All butterflies retain the native lazy interval and operation order.
name
method
python
def name(prefix: str) -> str: ...1
indices
method
python
def indices() -> tuple[str, ...]: ...1
Return coefficient-index vectors loaded by this endpoint.
transform
method
python
def transform(values: tuple[str, ...]) -> tuple[str, ...]: ...1