Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

31 lines (26 loc) · 1.06 KB

permanentbis

This is a fork of package permanent. First, the fork fixes pointer arithmetics in the C module of this package. Without this fix, compiling the module for Windows is impossible due to (defensive) compiler's errors. Second, the fork uses numpy >= 2.0.0, which introduces an incompatible to previous versions ways of handling complex numbers in the C interface.

A suggested fix has been proposed as pull request, and was recently accepted (to a bit too big extent). The main intention of this fork is to provide a multiarchitecture packaged distribution on PyPi and to support numpy 2.x.x.

The remaining part of the readme just repeats the original pacakge description.

Original description of permanent

Implements Ryser's algorithm for the permanent.

Install:

$ pip install permanentbis

Use:

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