Skip to content

C extension for Python, calculates the permanent

License

Notifications You must be signed in to change notification settings

droodev/permanentbis

 
 

Repository files navigation

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)

About

C extension for Python, calculates the permanent

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 73.5%
  • Python 26.5%