fhelium/rns_parameters.h
#include <fhelium/rns_parameters.h> · namespace fhelium::rns
Row layout of the rns_params Tensor accepted by fhelium::ckks, fhelium::rns, and fhelium::ntt functions.
rns_params is an integral Tensor of shape [RNS_PARAMETER_COUNT, limb] with the residue dtype of its operands, on their device. Column
| Enumerator | Value | Row content |
|---|---|---|
RNS_PARAM_TWICE_MODULUS | 0 | |
RNS_PARAM_MODULUS_LO | 1 | |
RNS_PARAM_MODULUS_HI | 2 | |
RNS_PARAM_NEG_INV_MODULUS_LO | 3 | |
RNS_PARAM_NEG_INV_MODULUS_HI | 4 | |
RNS_PARAM_R2 | 5 | |
RNS_PARAM_SCALED_R2 | 6 | |
RNS_PARAM_N_INV_MONTGOMERY | 7 | |
RNS_PARAMETER_COUNT | 8 | Number of rows. |