fmpz_mat_swap_rows, fmpz_mat_swap_cols
Synopsis
#include <flint/fmpz_mat.h>void fmpz_mat_swap_rows(fmpz_mat_t mat, slong * perm, slong r, slong s)sourcevoid fmpz_mat_swap_cols(fmpz_mat_t mat, slong * perm, slong r, slong s)sourceSwaps rows, respectively columns, r and s of mat, and entries r and s of perm. Rows are swapped by swapping their entries, so this costs O(c) even for multiprecision entries.
Cite this page
The FLINT team, “fmpz_mat_swap_rows, fmpz_mat_swap_cols (fmpz_mat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mat/fmpz_mat_swap_rows.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mat-fmpz-mat-swap-rows,
author = {{The FLINT team}},
title = {{fmpz\_mat\_swap\_rows, fmpz\_mat\_swap\_cols (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_swap_rows.html},
note = {Generated 2026-10-20}
}