FLINT3.7.0-dev

_gr_vec_permute, gr_vec_permute

Synopsis#include <flint/gr_vec.h>
void _gr_vec_permute(gr_ptr vec, slong * perm, slong len, gr_ctx_t ctx)source
int gr_vec_permute(gr_vec_t dest, gr_vec_t src, slong * perm, gr_ctx_t ctx)source

Apply the permutation perm of \{0, \ldots, \mathit{len}-1\} to the entries: dest[perm[i]] = src[i]. The underscore version works in place by swapping along cycles and overwrites perm; gr_vec_permute works on a copy of perm.

Cite this page

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