Metadata-Version: 2.1
Name: permanentbis
Version: 0.1.1
Summary: Computing the permanent of a matrix.
Author-email: Pete Shadbolt <hello@peteshadbolt.co.uk>, Andrzej Kaczmarczyk <droodev@gmail.com>
Maintainer-email: Andrzej Kaczmarczyk <droodev@gmail.com>
License: The MIT License (MIT)
        
        Copyright (c) 2014 Pete Shadbolt
        Copyright (c) 2022, 2024 Andrzej Kaczmarczyk (changes to the original)
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        
Project-URL: Repository, https://github.com/droodev/permanentbis
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=2.1

# permanentbis
This is a fork of package [permanent](https://pypi.org/project/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](https://github.com/peteshadbolt/permanent/pull/2), 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](https://en.wikipedia.org/wiki/Permanent).

Install:
```bash
$ pip install permanent
```
Use:
```python
>>> from numpy import *
>>> from permanentbis import permanent
>>> permanent(eye(15, dtype=complex))
(1-0j)
```
