Skip to content

Interface: add support for mathematical special functions (real inputs only) - #297

Closed
kennykos wants to merge 4 commits into
kokkos:mainfrom
kennykos:cyl_bessel_i
Closed

Interface: add support for mathematical special functions (real inputs only)#297
kennykos wants to merge 4 commits into
kokkos:mainfrom
kennykos:cyl_bessel_i

Conversation

@kennykos

Copy link
Copy Markdown
Collaborator

Add support for mathematical special functions defined in the header https://github.com/kokkos/kokkos/blob/9fa2a01747f0a30ca2723c8d7d0a22c95a05717a/core/src/Kokkos_MathematicalSpecialFunctions.hpp#L4.

The bessel functions pk.cyl_bessel_XX() are only supported for real data types as complex numbers are not yet supported in pykokkos.

kennykos added 2 commits December 18, 2024 11:27
Special functions defined in https://github.com/kokkos/kokkos/blob/9fa2a01747f0a30ca2723c8d7d0a22c95a05717a/core/src/Kokkos_MathematicalSpecialFunctions.hpp#L445

List of special functions:
* expint1
* erfcx
* cyl_bessel_j0
* cyl_bessel_y0
* cyl_bessel_i0
* cyl_bessel_k0
* cyl_bessel_j1
* cyl_bessel_y1
* cyl_bessel_i1
* cyl_bessel_k1
* cyl_bessel_h10
* cyl_bessel_h11
* cyl_bessel_h20
* cyl_bessel_h21
@kennykos

kennykos commented Dec 18, 2024

Copy link
Copy Markdown
Collaborator Author

This should close #296.

@@ -1,6 +1,41 @@
def expint1(input: float) -> float:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

providing some documentations for each of the functions would be helpful

@kennykos

Copy link
Copy Markdown
Collaborator Author

Duplicate of #359

@kennykos kennykos marked this as a duplicate of #359 Jun 12, 2026
@kennykos kennykos closed this Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interface: add cyl_bessel_i and cyl_bessel_i0 as mathemtical functions inside kernels (only accept real values for now)

2 participants