FLINT3.7.0-dev

gr_mat_mul_scalar, gr_mat_scalar_mul, gr_mat_mul_ui, gr_mat_mul_si, gr_mat_mul_fmpz, gr_mat_mul_fmpq, gr_mat_mul_scalar_other, gr_mat_scalar_other_mul

Synopsis#include <flint/gr_mat.h>
int gr_mat_mul_scalar(gr_mat_t res, const gr_mat_t mat, gr_srcptr x, gr_ctx_t ctx)source
int gr_mat_scalar_mul(gr_mat_t res, gr_srcptr x, const gr_mat_t mat, gr_ctx_t ctx)source
int gr_mat_mul_ui(gr_mat_t res, const gr_mat_t mat, ulong x, gr_ctx_t ctx)source
int gr_mat_mul_si(gr_mat_t res, const gr_mat_t mat, slong x, gr_ctx_t ctx)source
int gr_mat_mul_fmpz(gr_mat_t res, const gr_mat_t mat, const fmpz_t x, gr_ctx_t ctx)source
int gr_mat_mul_fmpq(gr_mat_t res, const gr_mat_t mat, const fmpq_t x, gr_ctx_t ctx)source
int gr_mat_mul_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_scalar_other_mul(gr_mat_t res, gr_srcptr x, gr_ctx_t x_ctx, const gr_mat_t mat, gr_ctx_t ctx)source

Set res to Ax or xA (the order matters over noncommutative rings).

Cite this page

The FLINT team, “gr_mat_mul_scalar, gr_mat_scalar_mul, gr_mat_mul_ui, gr_mat_mul_si, gr_mat_mul_fmpz, gr_mat_mul_fmpq, gr_mat_mul_scalar_other, gr_mat_scalar_other_mul (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_mul_scalar.html (generated 2026-10-20).