FLINT3.7.0-dev

unity_zp_mpn_set_zero, unity_zp_mpn_swap, unity_zp_mpn_copy, unity_zp_mpn_coeff_set_ui, unity_zp_mpn_set_unity_zp

Synopsis#include <flint/aprcl.h>
void unity_zp_mpn_set_zero(unity_zp_mpn f)source
void unity_zp_mpn_swap(unity_zp_mpn f, unity_zp_mpn g)source
void unity_zp_mpn_copy(unity_zp_mpn f, const unity_zp_mpn g)source
void unity_zp_mpn_coeff_set_ui(unity_zp_mpn f, ulong ind, ulong x)source
void unity_zp_mpn_set_unity_zp(unity_zp_mpn f, const unity_zp g)source

Set to zero, swap, copy, set the coefficient of \zeta^{ind} to x (for any \mathit{ind} < p^{exp}, exponents of at least \varphi(p^{exp}) being folded by the cyclotomic relation), and convert from a unity_zp with the same p, k and n.

Cite this page

The FLINT team, “unity_zp_mpn_set_zero, unity_zp_mpn_swap, unity_zp_mpn_copy, unity_zp_mpn_coeff_set_ui, unity_zp_mpn_set_unity_zp (aprcl.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/aprcl/unity_zp_mpn_set_zero.html (generated 2026-10-20).