fmpz_mpoly_compose_fmpz_mpoly_gen
Synopsis
#include <flint/fmpz_mpoly.h>void fmpz_mpoly_compose_fmpz_mpoly_gen(fmpz_mpoly_t A, const fmpz_mpoly_t B, const slong * c, const fmpz_mpoly_ctx_t ctxB, const fmpz_mpoly_ctx_t ctxAC)sourceSets A to B with the variable of index i of ctxB replaced by the variable of index c[i] of ctxAC, or by zero if c[i] is negative. Each nonnegative c[i] must be less than the number of variables of ctxAC. This renames, permutes, merges or drops variables at the cost of mapping and sorting the monomials. A may alias B if the contexts are the same.
Guides#
Cite this page
The FLINT team, “fmpz_mpoly_compose_fmpz_mpoly_gen (fmpz_mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mpoly/fmpz_mpoly_compose_fmpz_mpoly_gen.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mpoly-fmpz-mpoly-compose-fmpz-mpoly-gen,
author = {{The FLINT team}},
title = {{fmpz\_mpoly\_compose\_fmpz\_mpoly\_gen (fmpz\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mpoly/fmpz_mpoly_compose_fmpz_mpoly_gen.html},
note = {Generated 2026-10-20}
}