FLINT3.7.0-dev

_fmpz_mpoly_add, _fmpz_mpoly_sub

Synopsis#include <flint/fmpz_mpoly.h>
slong _fmpz_mpoly_add(fmpz * poly1, ulong * exps1, const fmpz * poly2, const ulong * exps2, slong len2, const fmpz * poly3, const ulong * exps3, slong len3, slong N, const ulong * cmpmask)source
slong _fmpz_mpoly_sub(fmpz * poly1, ulong * exps1, const fmpz * poly2, const ulong * exps2, slong len2, const fmpz * poly3, const ulong * exps3, slong len3, slong N, const ulong * cmpmask)source

Merge two sorted term lists with monomials of N words packed with the same width into (poly1, exps1), which must have room for \mathit{len2} + \mathit{len3} terms and must not overlap the inputs, and return the length of the result.

Cite this page

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