FLINT3.7.0-dev

gr_mat_pow_scalar, gr_mat_pow_scalar_jordan, gr_mat_pow_fmpq, gr_mat_pow_fmpq_jordan

Synopsis#include <flint/gr_mat.h>
int gr_mat_pow_scalar(gr_mat_t res, const gr_mat_t A, gr_srcptr c, gr_ctx_t ctx)source
int gr_mat_pow_scalar_jordan(gr_mat_t res, const gr_mat_t A, gr_srcptr c, gr_ctx_t ctx)source
int gr_mat_pow_fmpq(gr_mat_t res, const gr_mat_t mat, const fmpq_t exp, gr_ctx_t ctx)source
int gr_mat_pow_fmpq_jordan(gr_mat_t res, const gr_mat_t mat, const fmpq_t exp, gr_ctx_t ctx)source

Set res to A^c for a scalar or rational exponent, using the Jordan decomposition (principal branch). The non-Jordan versions first check for small integer exponents and use gr_mat_pow_si for them.

Cite this page

The FLINT team, “gr_mat_pow_scalar, gr_mat_pow_scalar_jordan, gr_mat_pow_fmpq, gr_mat_pow_fmpq_jordan (gr_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_mat/gr_mat_pow_scalar.html (generated 2026-10-20).