FLINT3.7.0-dev

gr_mat_div_scalar, gr_mat_div_scalar_other, gr_mat_div_ui, gr_mat_div_si, gr_mat_div_fmpz, gr_mat_div_fmpq

Synopsis#include <flint/gr_mat.h>
int gr_mat_div_scalar(gr_mat_t res, const gr_mat_t mat, gr_srcptr x, gr_ctx_t ctx)source
int gr_mat_div_scalar_other(gr_mat_t res, const gr_mat_t mat, gr_srcptr x, gr_ctx_t x_ctx, gr_ctx_t ctx)source
int gr_mat_div_ui(gr_mat_t res, const gr_mat_t mat, ulong x, gr_ctx_t ctx)source
int gr_mat_div_si(gr_mat_t res, const gr_mat_t mat, slong x, gr_ctx_t ctx)source
int gr_mat_div_fmpz(gr_mat_t res, const gr_mat_t mat, const fmpz_t x, gr_ctx_t ctx)source
int gr_mat_div_fmpq(gr_mat_t res, const gr_mat_t mat, const fmpq_t x, gr_ctx_t ctx)source

Set res to A / x, dividing each entry with gr_div (GR_DOMAIN if a quotient does not exist in R).

Cite this page

The FLINT team, “gr_mat_div_scalar, gr_mat_div_scalar_other, gr_mat_div_ui, gr_mat_div_si, gr_mat_div_fmpz, gr_mat_div_fmpq (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_div_scalar.html (generated 2026-10-20).