fmpz_mat_similarity
Synopsis
#include <flint/fmpz_mat.h>void fmpz_mat_similarity(fmpz_mat_t A, slong r, fmpz_t d)sourceReplaces the square matrix by , where is the identity matrix with the entries in row and every column replaced by . Requires .
Equivalently, times column is added to every column , and then times the sum of the rows is subtracted from row . Such transforms preserve the determinant and the characteristic and minimal polynomials.
Cite this page
The FLINT team, “fmpz_mat_similarity (fmpz_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mat/fmpz_mat_similarity.html (generated 2026-11-02).
@misc{flint-doc-fmpz-mat-fmpz-mat-similarity,
author = {{The FLINT team}},
title = {{fmpz\_mat\_similarity (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_similarity.html},
note = {Generated 2026-11-02}
}