fmpz_mat_scalar_divexact_fmpz, fmpz_mat_scalar_divexact_si, fmpz_mat_scalar_divexact_ui
Synopsis
#include <flint/fmpz_mat.h>void fmpz_mat_scalar_divexact_fmpz(fmpz_mat_t B, const fmpz_mat_t A, const fmpz_t c)sourcevoid fmpz_mat_scalar_divexact_si(fmpz_mat_t B, const fmpz_mat_t A, slong c)sourcevoid fmpz_mat_scalar_divexact_ui(fmpz_mat_t B, const fmpz_mat_t A, ulong c)sourceSets , assuming that divides every entry of ; the result is undefined otherwise. Aliasing is allowed.
fmpz_mat_scalar_divexact_fmpz precomputes the division by once for all entries (see _fmpz_vec_scalar_divexact_fmpz_strided), which makes it much faster than entrywise division when is large.
Cite this page
The FLINT team, “fmpz_mat_scalar_divexact_fmpz, fmpz_mat_scalar_divexact_si, fmpz_mat_scalar_divexact_ui (fmpz_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mat/fmpz_mat_scalar_divexact_fmpz.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mat-fmpz-mat-scalar-divexact-fmpz,
author = {{The FLINT team}},
title = {{fmpz\_mat\_scalar\_divexact\_fmpz, fmpz\_mat\_scalar\_divexact\_si, fmpz\_mat\_scalar\_divexact\_ui (fmpz\_mat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mat/fmpz_mat_scalar_divexact_fmpz.html},
note = {Generated 2026-11-02}
}