fmpz_poly_attach_truncate, fmpz_poly_attach_shift
Synopsis
#include <flint/fmpz_poly.h>void fmpz_poly_attach_truncate(fmpz_poly_t trunc, const fmpz_poly_t poly, slong n)sourcevoid fmpz_poly_attach_shift(fmpz_poly_t trunc, const fmpz_poly_t poly, slong n)sourceMake the uninitialised trunc a read-only view of part of poly without copying: fmpz_poly_attach_truncate of the low coefficients, fmpz_poly_attach_shift of the coefficients from index on, that is of (zero if ). The view shares memory with poly; it must not be cleared, modified or used as an output, and becomes invalid when poly changes. A truncated view may have a zero leading coefficient, so it is not necessarily normalised.
Cite this page
The FLINT team, “fmpz_poly_attach_truncate, fmpz_poly_attach_shift (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/fmpz_poly_attach_truncate.html (generated 2026-11-02).
@misc{flint-doc-fmpz-poly-fmpz-poly-attach-truncate,
author = {{The FLINT team}},
title = {{fmpz\_poly\_attach\_truncate, fmpz\_poly\_attach\_shift (fmpz\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_poly/fmpz_poly_attach_truncate.html},
note = {Generated 2026-11-02}
}