torch-bessel 0.0.2__cp312-cp312-macosx_11_0_arm64.whl → 0.0.3__cp312-cp312-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- torch_bessel/_C.cpython-312-darwin.so +0 -0
- {torch_bessel-0.0.2.dist-info → torch_bessel-0.0.3.dist-info}/METADATA +7 -5
- torch_bessel-0.0.3.dist-info/RECORD +8 -0
- torch_bessel-0.0.2.dist-info/RECORD +0 -8
- {torch_bessel-0.0.2.dist-info → torch_bessel-0.0.3.dist-info}/LICENSE +0 -0
- {torch_bessel-0.0.2.dist-info → torch_bessel-0.0.3.dist-info}/WHEEL +0 -0
- {torch_bessel-0.0.2.dist-info → torch_bessel-0.0.3.dist-info}/top_level.txt +0 -0
Binary file
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: torch_bessel
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.3
|
4
4
|
Summary: PyTorch extension package for Bessel functions with arbitrary real order and complex inputs
|
5
|
-
Home-page: https://github.com/
|
5
|
+
Home-page: https://github.com/hchau630/torch-bessel
|
6
6
|
Author: Ho Yin Chau
|
7
7
|
Requires-Python: >= 3.9
|
8
8
|
Description-Content-Type: text/markdown
|
@@ -20,20 +20,22 @@ Dynamic: summary
|
|
20
20
|
PyTorch extension package for Bessel functions with arbitrary real order and complex inputs
|
21
21
|
|
22
22
|
# Install
|
23
|
+
Currently only supports Linux (with CUDA 12.4) or MacOS (Apple silicon, cpu only) with python >= 3.9, <= 3.12.
|
23
24
|
```
|
24
25
|
pip install torch-bessel
|
25
26
|
```
|
26
27
|
|
27
|
-
# Example
|
28
|
+
# Example
|
28
29
|
```
|
29
30
|
import torch_bessel
|
30
31
|
|
31
|
-
|
32
|
+
real, imag = torch.randn(2, 5, device="cuda")
|
33
|
+
z = torch.complex(real.abs(), imag) # inputs on the left-half complex plane are set to NaNs.
|
32
34
|
torch_bessel.ops.modified_bessel_k0(z)
|
33
35
|
```
|
34
36
|
|
35
37
|
# Implemented functions
|
36
|
-
- `modified_bessel_k0`: Same as `torch.special.modified_bessel_k0`, but also handles backpropagation and complex inputs with $\mathrm{
|
38
|
+
- `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.
|
37
39
|
|
38
40
|
# WIP
|
39
41
|
- `modified_bessel_kv`: Analogue of `scipy.special.kv`.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
torch_bessel/_C.cpython-312-darwin.so,sha256=d2qpLB8simaybQxmgXOrrHwvsG3yw32yoehTIX5PsO0,232280
|
2
|
+
torch_bessel/__init__.py,sha256=oohbWz8vxekl7kqDNSWqDH3ORabf9-Tug1KJryKw51A,230
|
3
|
+
torch_bessel/ops.py,sha256=Q9BrLxi15MS53xSt_S9dyE3g8_8_GCFYhfAztIor8Fw,2043
|
4
|
+
torch_bessel-0.0.3.dist-info/LICENSE,sha256=do0DI6wu4mF3VXnEXXPYZqVEatoRSSamgz9t80wU7_o,1068
|
5
|
+
torch_bessel-0.0.3.dist-info/METADATA,sha256=7hH6thd8bu4oaKYfNq5v6V4JkUe6g6_C9Irl618y3-8,1220
|
6
|
+
torch_bessel-0.0.3.dist-info/WHEEL,sha256=VujM3ypTCyUW6hcTDdK2ej0ARVMxlU1Djlh_zWnDgqk,109
|
7
|
+
torch_bessel-0.0.3.dist-info/top_level.txt,sha256=cbDIjTj71LuAlVyyYyDt8fOAeLaVeX3Vums5F2FBa-4,13
|
8
|
+
torch_bessel-0.0.3.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
torch_bessel/_C.cpython-312-darwin.so,sha256=dwRnSeElZ4yGUJB7oeGLG8HxScqA1QDD6oPYfFHvTpM,232696
|
2
|
-
torch_bessel/__init__.py,sha256=oohbWz8vxekl7kqDNSWqDH3ORabf9-Tug1KJryKw51A,230
|
3
|
-
torch_bessel/ops.py,sha256=Q9BrLxi15MS53xSt_S9dyE3g8_8_GCFYhfAztIor8Fw,2043
|
4
|
-
torch_bessel-0.0.2.dist-info/LICENSE,sha256=do0DI6wu4mF3VXnEXXPYZqVEatoRSSamgz9t80wU7_o,1068
|
5
|
-
torch_bessel-0.0.2.dist-info/METADATA,sha256=F8Mbw3qz2XuV82NoMc7HWKQ2lKivcx1X9ht2AScvSfo,999
|
6
|
-
torch_bessel-0.0.2.dist-info/WHEEL,sha256=VujM3ypTCyUW6hcTDdK2ej0ARVMxlU1Djlh_zWnDgqk,109
|
7
|
-
torch_bessel-0.0.2.dist-info/top_level.txt,sha256=cbDIjTj71LuAlVyyYyDt8fOAeLaVeX3Vums5F2FBa-4,13
|
8
|
-
torch_bessel-0.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|