fhelium.benchmarks.suite.primitives
Integer input construction and analytic oracles for complete RNS/NTT calls.
analytic_ntt_rows
function View source
python
def analytic_ntt_rows(config: CkksConfig, radix: int) -> tuple[torch.Tensor, torch.Tensor]: ...1
Return
With
ntt_operands
function View source
python
def ntt_operands(moduli: tuple[int, ...], radix: int, linear: torch.Tensor, square: torch.Tensor, batch: int) -> tuple[torch.Tensor, torch.Tensor]: ...1
Construct
rns_operands
function View source
python
def rns_operands(moduli: tuple[int, ...], n: int, batch: int, radix: int, *, multiply: bool) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]: ...1
Build dense full-width residue inputs with an integer closed-form result.
The fixed scale-50 suite primes and coefficients below