scipy.special.sph_legendre_p_all#
- scipy.special.sph_legendre_p_all(n, m, theta, \*, diff_n=0) = <scipy.special._multiufuncs.MultiUFunc object>[source]#
All spherical Legendre polynomials of the first kind up to the specified degree n, order m, and all derivatives up to order diff_n.
- Parameters:
- nint
Degree of the spherical Legendre polynomials. Must have
n >= 0.- mint
Order of the spherical Legendre polynomials.
- thetaarray_like
Input value.
- diff_nint, optional
A non-negative integer. Compute and return all derivatives up to order diff_n. Default is 0.
- Returns:
- ndarray
Output shape is
(diff_n + 1, n + 1, 2 * m + 1, ...). The entry at(i, j, k)corresponds to thei-th derivative, degreej, and orderkfor all0 <= i <= diff_n,0 <= j <= n, and-m <= k <= m.
See also
Notes
Array API Standard Support
sph_legendre_p_allhas support for Python Array API Standard compatible backends in addition to NumPy. The following combinations of backend and device (or other capability) are supported.Library
CPU
GPU
NumPy
✅
n/a
CuPy
n/a
⛔
PyTorch
✅
⛔
JAX
⚠️ no JIT
⛔
Dask
⛔
n/a
See Array API coverage for more information.