FLINT3.7.0-dev

unity_zp_mul, unity_zp_sqr, unity_zp_mul_inplace, unity_zp_sqr_inplace

Synopsis#include <flint/aprcl.h>
void unity_zp_mul(unity_zp f, const unity_zp g, const unity_zp h)source
void unity_zp_sqr(unity_zp f, const unity_zp g)source
void unity_zp_mul_inplace(unity_zp f, const unity_zp g, const unity_zp h, fmpz_t * t)source
void unity_zp_sqr_inplace(unity_zp f, const unity_zp g, fmpz_t * t)source

Set ff to ghgh, respectively g2g^2, reduced by Φpexp\Phi_{p^{exp}} and nn. The inplace versions use the preallocated array tt of SQUARING_SPACE values as temporary space when it is large enough.

Cite this page

The FLINT team, “unity_zp_mul, unity_zp_sqr, unity_zp_mul_inplace, unity_zp_sqr_inplace (aprcl.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/aprcl/unity_zp_mul.html (generated 2026-11-02).