Skip to main content

PyTorch extension package for Bessel functions with arbitrary real order and complex inputs

Project description

About

PyTorch extension package for Bessel functions with arbitrary real order and complex inputs

Install

Currently only supports Linux (with CUDA 12.4) or MacOS (Apple silicon, cpu only) with python >= 3.9, <= 3.12.

pip install torch-bessel

Example

import torch_bessel

real, imag = torch.randn(2, 5, device="cuda")
z = torch.complex(real.abs(), imag)  # inputs on the left-half complex plane are set to NaNs.
torch_bessel.ops.modified_bessel_k0(z)

Implemented functions

  • modified_bessel_k0: Same as torch.special.modified_bessel_k0, but also handles backpropagation and complex inputs with $\mathrm{Re}(z) \geq 0$ on cpu and cuda.

WIP

  • modified_bessel_kv: Analogue of scipy.special.kv.

Benchmarks

Benchmarking performed with the asv package. Results can be viewed at https://hchau630.github.io/torch-bessel.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

torch_bessel-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

torch_bessel-0.0.4-cp312-cp312-macosx_11_0_arm64.whl (80.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

torch_bessel-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

torch_bessel-0.0.4-cp311-cp311-macosx_11_0_arm64.whl (81.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

torch_bessel-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

torch_bessel-0.0.4-cp310-cp310-macosx_11_0_arm64.whl (80.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

torch_bessel-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

torch_bessel-0.0.4-cp39-cp39-macosx_11_0_arm64.whl (80.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file torch_bessel-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b5bffd0cf9a7bb9f6c0e18424da0736d0a0e91ed9a6b26810264d424ce9eee35
MD5 c50d31a59cd82fb86b9fb8b2d5499ef6
BLAKE2b-256 65a8dac506cecc7ca56a3ac35ac6a21fb721bda85a26ce0a71fcce1a36a41a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b624584775a015bdd244f3a1a8979379f606451076034da6c16aff732df9cbfb
MD5 7b2a8f5f119ff975d20451d3b77dec9b
BLAKE2b-256 b6f35f0c0a9d3b772e1ae6daaf00336490726ccfb851baca24d084ada1a1826b

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 25da3cea479b63632df2d8969387633955d11079c7bbd4521690036cc940e3de
MD5 3b202bff75030a2e8df730800b805107
BLAKE2b-256 e46c81ff5c63ba9e81ea00f1cdb7359b2dc1275ab095bd74ffd1c2cebcdabca2

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29660c6df79e754fa125af9e3de4a4d20ffb3588d751984a7c56e1965a76c87a
MD5 97971b3e9de4746823bc55c19df11b69
BLAKE2b-256 50a46303100881b3be42e9f737484d8f6b2501d6d36a3a5ef827c6a269abe404

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6bac1d40b7fed1da93d52ef679ee9dc7a2a72636435e091cc509d110d41935ae
MD5 4ad540fdb4252526add558dbd19ae31c
BLAKE2b-256 310b9c20d2b556d93383747da3c7a30f0f4486e85ef1f70b290b8a370a3916c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7e06cd92e4b9b435e963bfa17833a4897d02e62ccb0023916d1d1332e9079e4
MD5 f60d31594e087bdbe0e63f543a2a0f5d
BLAKE2b-256 febdb1568863b5656e6dad6f784e65aa060bc439f661d1683927f0f8eb09ba52

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffaf3b909bc41beb91fb0fa83bf41ff6071105a4b427142bb3d34b5288ff81f8
MD5 1a1afbafdc5fdaca4afaf9132e80cba1
BLAKE2b-256 124fafbfc67b2c4af4752c9c16b41bb64120b9162cb46cb45597a3c6e7ba5062

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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

File details

Details for the file torch_bessel-0.0.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19674f157b6317a44bb4e85d3af082604d3c045662e12391759722bab5e8aecf
MD5 8e9c99e8c599e5d4e43728eddd06763b
BLAKE2b-256 7d9fd4c9b434996fc169f5bec364fafcd944def1233ef893b5992b7c5b9fd016

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.4-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: build_and_deploy.yml on hchau630/torch-bessel

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