-
We have an implementation of associated Legendre functions of the first kind for spherical harmonics and spherical harmonics transforms. It is scipy equivalence is scipy.special.lpmn(m, n, z), where m is the order, n is the degree, and m <= n. The output array has shape We would like to have feedbacks from the community on how to contribute this work in JAX: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
JAX tries not to deviate from NumPy or SciPy APIs unless absolutely necessary -- and if it is necessary, we typically try to come up new primitives (e.g., in |
Beta Was this translation helpful? Give feedback.
-
In your implementation |
Beta Was this translation helpful? Give feedback.
JAX tries not to deviate from NumPy or SciPy APIs unless absolutely necessary -- and if it is necessary, we typically try to come up new primitives (e.g., in
jax.lax
) rather than deviating fromscipy
in thejax.scipy
namespace. So in this case, I would pick your first option.