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)

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.1.0.dev0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

pfapack-0.1.0.dev0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pfapack-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: pfapack-0.1.0.dev0.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

Hashes for pfapack-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 f0b4d6cf139b9e782a6864f8ecfe821f19bb4cec20be7832ae4929d28fb64911
MD5 0c9743b8205940807da7506897d7da6e
BLAKE2b-256 21481ea538d01298b39f99f185037a67254f01531426153e4b86a63b55e2b318

See more details on using hashes here.

File details

Details for the file pfapack-0.1.0.dev0-py3-none-any.whl.

File metadata

  • Download URL: pfapack-0.1.0.dev0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 6775ce76a7289b1d3019bc5f930ceb166b5175e3323a988255a4476678122e35
MD5 4a47bbc2436da58fdcb8cbd1748a7e04
BLAKE2b-256 4a80664e747bc0bed56a9cc019bca0ff5a75ed095cda8a2995fe385e8fbd2941

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