scipy.special.pbwa#
- scipy.special.pbwa(a, x, out=None) = <wrapped_ufunc 'pbwa'>#
Parabolic cylinder function W.
The function is a particular solution to the differential equation
\[y'' + \left(\frac{1}{4}x^2 - a\right)y = 0,\]for a full definition see section 12.14 in [1].
- Parameters:
- aarray_like
Real parameter
- xarray_like
Real argument
- outndarray, optional
Optional output array for the function results
- Returns:
- wscalar or ndarray
Value of the function
- wpscalar or ndarray
Value of the derivative in x
Notes
The function is a wrapper for a Fortran routine by Zhang and Jin [2]. The implementation is accurate only for
|a|, |x| < 5and returns NaN outside that range.Array API Standard Support
pbwahas 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
✅
⛔
Dask
⛔
n/a
For the NumPy backend, this function supports all NumPy ufunc keyword arguments. Other backends may support
out, but typically none of the other ufunc kwargs.outis typically supported for CuPy and PyTorch, but not currently in cases where SciPy relies on a generic Array API implementation or, for PyTorch on CPU, falls back to the NumPy backend.outis never supported for JAX because JAX arrays are immutable.pbwadoes not currently supportoutfor the PyTorch backend.See Array API coverage for more information.
References
[1]Digital Library of Mathematical Functions, 14.30. https://dlmf.nist.gov/14.30
[2]Zhang, Shanjie and Jin, Jianming. “Computation of Special Functions”, John Wiley and Sons, 1996. https://people.sc.fsu.edu/~jburkardt/f_src/special_functions/special_functions.html