FLINT3.7.0-dev

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)source
void nmod_poly_mock(nmod_poly_t a, const n_poly_t b, nmod_t mod)source

Make 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).