scipy.special.kelvin#
- scipy.special.kelvin(x, out=None) = <wrapped_ufunc 'kelvin'>#
Kelvin functions as complex numbers.
- Parameters:
- xarray_like
Argument
- outtuple of ndarray, optional
Optional output arrays for the function values
- Returns:
- Be, Ke, Bep, Kep4-tuple of scalar or ndarray
The tuple (Be, Ke, Bep, Kep) contains complex numbers representing the real and imaginary Kelvin functions and their derivatives evaluated at x. For example, kelvin(x)[0].real = ber x and kelvin(x)[0].imag = bei x with similar relationships for ker and kei.
Notes
Array API Standard Support
kelvinhas 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.kelvindoes not currently supportoutfor the PyTorch backend.See Array API coverage for more information.