Skip to content

Conversation

@kennykos
Copy link
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
Copy link
Collaborator Author

kennykos commented Dec 18, 2024

This should close #296.

@@ -1,6 +1,41 @@
def expint1(input: float) -> float:
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants