Skip to main content

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.

license tests codecov docs version PyPI - Python Version

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)

Citing

If you have used pfapack in your research, please cite it using the following bib entry:

@article{wimmer2012algorithm,
  title={Efficient numerical computation of the pfaffian for dense and banded skew-symmetric matrices},
  author={Michael Wimmer},
  journal={ACM Transactions on Mathematical Software (TOMS)},
  volume={38},
  number={4},
  pages={1--17},
  year={2012},
  publisher={ACM New York, NY, USA}
}

License

MIT License

Contributions

Project details


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.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

pfapack-0.2.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pfapack-0.2.0.tar.gz.

File metadata

  • Download URL: pfapack-0.2.0.tar.gz
  • Upload date:
  • Size: 6.9 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

Hashes for pfapack-0.2.0.tar.gz
Algorithm Hash digest
SHA256 caac6e8b6d28eda49cc5e58dc517c95efff17a6a9b1839540679d5b7ee1e7ff4
MD5 91ae7c5f95832c21a0a084e8d176201b
BLAKE2b-256 48387f64b47c27e1047a8d309e01acde81ff10b46de8f02b8ec0c0fb07e95af5

See more details on using hashes here.

File details

Details for the file pfapack-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pfapack-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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

Hashes for pfapack-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26b3f7840c36fc76adf4b0a8fbe7582d3a38a2887c4198f0c18ad23e1686a0ff
MD5 5e51f90835ae52f6074ece8c13311ab8
BLAKE2b-256 816c0f138a1adf4689ed19cf25edc804ad058ed4d2fef837f717d7be98632ad2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page