n_poly_mock, nmod_poly_mock
Synopsis
#include <flint/n_poly.h>void n_poly_mock(n_poly_t a, const nmod_poly_t b)sourcevoid nmod_poly_mock(nmod_poly_t a, const n_poly_t b, nmod_t mod)sourceMake a a shallow view of b, sharing its coefficient array, so that functions of the other type can read it without copying (nmod_poly_mock also sets the modulus of the view). The view must not be cleared or used to modify the length or allocation.
Cite this page
The FLINT team, “n_poly_mock, nmod_poly_mock (n_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/n_poly/n_poly_mock.html (generated 2026-10-20).
@misc{flint-doc-n-poly-n-poly-mock,
author = {{The FLINT team}},
title = {{n\_poly\_mock, nmod\_poly\_mock (n\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/n_poly/n_poly_mock.html},
note = {Generated 2026-10-20}
}