scipy.special.legendre_p_all#
- scipy.special.legendre_p_all(n, z, \*, diff_n=0) = <scipy.special._multiufuncs.MultiUFunc object>[source]#
All Legendre polynomials of the first kind up to the specified degree n and all derivatives up to order diff_n.
- Parameters:
- nint
Degree of the Legendre polynomials. Must have
n >= 0.- zarray_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, ...). The entry at(i, j)corresponds to thei-th derivative and degreejfor all0 <= i <= diff_nand0 <= j <= n.
See also
Notes
Array API Standard Support
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.