FLINT3.7.0-dev

fmpz_mat_permanent

Synopsis#include <flint/fmpz_mat.h>
int fmpz_mat_permanent(fmpz_t res, const fmpz_mat_t A)source

Sets res to the permanent of the square matrix A and returns 1. Squareness is not checked. Uses Glynn's formula [Gly2010], with fixed-size multiword arithmetic when the entries are small and with threads for dimensions above 10, and otherwise gr_mat_permanent_cofactor or gr_mat_permanent_glynn. The cost is O(2^n n) operations.

References#

Cite this page

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