FLINT3.7.0-dev

gr_mat_move_row

Synopsis#include <flint/gr_mat.h>
int gr_mat_move_row(gr_mat_t A, slong i, slong new_i, gr_ctx_t ctx)source

Moves row i to position \mathit{new\_i}, shifting the rows in between by one: with i = 4 and \mathit{new\_i} = 7 the rows A_4, A_5, A_6, A_7 become A_5, A_6, A_7, A_4, and with i = 7 and \mathit{new\_i} = 4 they become A_7, A_4, A_5, A_6. Returns GR_DOMAIN if an index is out of bounds and otherwise succeeds.

Cite this page

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