/permanent

C extension for Python, calculates the permanent

Primary LanguageCMIT LicenseMIT

permanent

Implements Ryser's algorithm for the permanent.

Install:

$ pip install permanent

Use:

>>> from numpy import *
>>> from permanent import permanent
>>> permanent(eye(15, dtype=complex))
(1-0j)