Efficient numerical computation of the Pfaffian for dense and banded skew-symmetric matrices.
Project description
pfapack
: Efficient numerical computation of the Pfaffian for dense and banded skew-symmetric matrices
Code and algorithms are taken from arXiv:1102.3440 which is authored by Michael Wimmer.
Install
pip install pfapack
Usage
from pfapack import pfaffian as pf
import numpy.matlib
# first real matrices
A = numpy.matlib.rand(100, 100)
A = A - A.T
pfa1 = pf.pfaffian(A)
pfa2 = pf.pfaffian(A, method="H")
pfa3 = pf.pfaffian_schur(A)
print(pfa1, pfa2, pfa3)
License
MIT License
Contributions
- Bas Nijholt
- Michael Wimmer (author of the algorithms)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pfapack-0.1.1.tar.gz
(12.3 kB
view details)
Built Distribution
File details
Details for the file pfapack-0.1.1.tar.gz
.
File metadata
- Download URL: pfapack-0.1.1.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c415dc8723ab9b5d96cda21b0fa115a36d6d1e758fc2c4943c2952b958dca81a |
|
MD5 | 9322bd98883cdd725a95017d73cc937b |
|
BLAKE2b-256 | 533b4ce732a2a181f89378113ff1de47aa58f0856ec8654a075dd95d094ab2e3 |
File details
Details for the file pfapack-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pfapack-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de09756a14d20094e8b78d7105651fd73739bb9b0c552e6ea4754a189c3fcc44 |
|
MD5 | e8eff60892f4e2ca47aa91b616f8cd50 |
|
BLAKE2b-256 | 7215b0029fc87846aa55269c1449de233bd01b82cd31938419041ba14b9395bd |