Template Function intnat::prepShoupConsts

Function Documentation

template<typename VecType, typename IntType>
static VecType intnat::prepShoupConsts(const VecType &table, const IntType &modulus)

Builds the Shoup constants for a root table, so the table-less transform overloads can delegate to the vectorized precon kernels.

Parameters
  • table – is the table of roots of unity.

  • modulus – is the modulus of the transform.

Returns

the vector of PrepModMulConst() values of the table entries.