Deprecate scipy.special.lpmn & lpmn_values #25675
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is spurred by the deprecation of
scipy.special.lpmn
andscipy.special.lpmn_values
in SciPy version 1.15.0, and the nightly CI test failures due to thes deprecations: https://github.com/jax-ml/jax/actions/runs/12466440919.I initially attempted to replace the deprecated
scipy.special.lpmn
with the newscipy.special.assoc_legendre_p_all
, but the outputs and conventions differ enough that I abandoned that.Given the issues with the implementation (e.g. #10623, #19157) and the fact that the functions are poor fits to the acceptance criteria for JAX APIs (see JEP 18137) I believe we should follow Scipy and fully deprecate these APIs.