Skip to main content

Generalised FFTLog for integral transforms

Project description

FFTL — generalised FFTLog for Python

The FFTL package for Python contains a routine to calculate integral transforms of the type ã(k) = ∫ a(r) T(kr) dr for arbitrary kernels T. It uses a modified FFTLog [2] method of Hamilton [1] to efficiently compute the transform on logarithmic input and output grids.

The package supports any array implementation such as Numpy, JAX, Torch, dask, etc. as long as it provides a reasonable set of standard Array API functions (e.g. log(), exp(), linspace(), etc.) and Fast Fourier Transforms (fft.rfft() and fft.irfft()).

Besides the generalised FFTLog algorithm, the package also provides a number of standard integral transforms.

Installation

Install with pip:

pip install fftl

The package only requires numpy and scipy.

For development, it is recommended to clone the GitHub repository, and perform an editable pip installation.

Usage

The core functionality of the package is provided by the fftl module. The fftl.transform() routine computes the generalised FFTLog integral transform for a given kernel. For convenience, the module provides a number of standard integral transforms.

User manual

References

  1. Hamilton A. J. S., 2000, MNRAS, 312, 257 (astro-ph/9905191)
  2. Talman J. D., 1978, J. Comp. Phys., 29, 35

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

fftl-2025.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fftl-2025.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file fftl-2025.1.1.tar.gz.

File metadata

  • Download URL: fftl-2025.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for fftl-2025.1.1.tar.gz
Algorithm Hash digest
SHA256 aee8508f510a130fedc3a4e9ed3872ef5548ac539da6f7c4673fd4ca44e11902
MD5 3f3711eb7d2771581729b9bab4ea58d0
BLAKE2b-256 b8eec850ff6cdfa43b3e180d0f26fa152ea2e10c7e7a74194154cfb8fb8e6eab

See more details on using hashes here.

Provenance

The following attestation bundles were made for fftl-2025.1.1.tar.gz:

Publisher: release.yml on ntessore/fftl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fftl-2025.1.1-py3-none-any.whl.

File metadata

  • Download URL: fftl-2025.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for fftl-2025.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52ceecd293cf7249ceda7db8d07692cffc2a65fadb0d0379e2496a1fbe245812
MD5 d9a6b1ff751b7bb578f505f30ddbfefe
BLAKE2b-256 4b24792de0054f900aa0c305e5b804173dca8b6d840c088f0a54754142b6fd22

See more details on using hashes here.

Provenance

The following attestation bundles were made for fftl-2025.1.1-py3-none-any.whl:

Publisher: release.yml on ntessore/fftl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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