FLINT3.7.0-dev

nmod_poly_mat_set_trunc, nmod_poly_mat_truncate

Synopsis#include <flint/nmod_poly_mat.h>
void nmod_poly_mat_set_trunc(nmod_poly_mat_t res, const nmod_poly_mat_t pmat, long len)source
void nmod_poly_mat_truncate(nmod_poly_mat_t pmat, long len)source

Sets res to pmat with every entry truncated to length len (reduced modulo x^{\mathit{len}}), respectively truncates pmat in place.

Cite this page

The FLINT team, “nmod_poly_mat_set_trunc, nmod_poly_mat_truncate (nmod_poly_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nmod_poly_mat/nmod_poly_mat_set_trunc.html (generated 2026-10-20).