FLINT3.7.0-dev

_perm_inv

Synopsis#include <flint/perm.h>
void _perm_inv(slong * res, const slong * vec, slong n)source

Sets res to the inverse permutation of vec, so that res[vec[i]] = i. If res and vec are the same array, a temporary copy is allocated.

Cite this page

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