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.

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.3-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.3-cp312-cp312-macosx_11_0_arm64.whl (79.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

torch_bessel-0.0.3-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.3-cp311-cp311-macosx_11_0_arm64.whl (80.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

torch_bessel-0.0.3-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.3-cp310-cp310-macosx_11_0_arm64.whl (78.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

torch_bessel-0.0.3-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.3-cp39-cp39-macosx_11_0_arm64.whl (79.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c6e093cdaa32e2e89fec86b6fdd6073ce92ae1e96c98d83225edc7a9d7ac7a2a
MD5 7e421c0428455ab36d54f13b60b8c9b4
BLAKE2b-256 bb1cfcbf575e615be086f1181faa631bb01a95c47176a57fb49307470085f6bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 018be52ab505510697b27a922082f53cbbed9d66db13b2905bba5ceffcae7561
MD5 c842ad10134898a87ef530e6c7f57e2e
BLAKE2b-256 95fd49adf768ebbec4b3a9b28b873def92a560c447c84eaa3dcd86eacfbc7b1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f28be69a6684cb90d2d61ebb3ad987e15e79e054cd3d7370d948bda4d5801130
MD5 86dfae6fffc225eae5009cbb3214cd52
BLAKE2b-256 070a4c211fb138a2a620bdb39ae2fac092279b8a955391ceda8af1af32d3d3a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93fb4778487f1305262706881056d54697d25d407cfb96d44953c8ffc100899e
MD5 838c628e9472a7283cd5e0d43b0ee91e
BLAKE2b-256 f3fbc51b202cfde53daca6768bea75c348b0bc140b388dc25b2530be95d1821e

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd4f093e2670166c97e440c91c649644151d914a3d303dccf78a8da414c8b5c6
MD5 37198428e1ebc7c59ff9336550c0c131
BLAKE2b-256 3607b7dd868ede217b0e94e9174bfde2503674402dd750053a98f2cb7608d016

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b940411bf38992bf3b5eda4c392c748aab84fb17b99a29a8003b71e412292341
MD5 f687a548e8f22365b8b98b9d4bf31624
BLAKE2b-256 e45553fb0a1b08363d3390c390e569e405033d448ea8ec67fdabba85f9f04928

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bef710ec04259433a8d971965e8f911ae9299e2f2485eca515a3f9a632e74fd
MD5 963f2d767aca6a4a1f5b177d0e0ccb66
BLAKE2b-256 20682a058873eaafef8777bf839f882b9a5a007c79b0cb6e8a08c1196061c749

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_bessel-0.0.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb6cd3c14944bd29ecf076684a297fc6b853f0047c4f4849ecf354a832d9ee99
MD5 530b937e0adc61839f11c9867e0a78f0
BLAKE2b-256 4e8fcad8a0fa1eb0fa0df219dd3f6fd9cbc07c3ee416cb32048504c4a5b396b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_bessel-0.0.3-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