FLINT3.7.0-dev

fq_nmod_mat_similarity

Synopsis#include <flint/fq_nmod_mat.h>
void fq_nmod_mat_similarity(fq_nmod_mat_t A, slong r, fq_nmod_t d, const fq_nmod_ctx_t ctx)

Replaces the square matrix AA by P−1APP^{-1} A P, where PP is the identity matrix with the entries in row rr and every column j∉{r−1,r}j \notin \{r - 1, r\} replaced by dd. Such transforms preserve the characteristic and minimal polynomials.

Generated from the same template as fq_mat_similarity, whose documentation has the details.

Cite this page

The FLINT team, “fq_nmod_mat_similarity (fq_nmod_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fq_nmod_mat/fq_nmod_mat_similarity.html (generated 2026-11-02).