dpnp.exp
- dpnp.exp(x, /, out=None, *, order='K', where=True, dtype=None, subok=True, **kwargs)[source]
Calculate the exponential, element-wise.
For full documentation refer to
numpy.exp.- Returns:
out – The exponential of x, element-wise.
- Return type:
dpnp.ndarray
Limitations
Parameter x is only supported as either
dpnp.ndarrayordpctl.tensor.usm_ndarray. Parameters where, dtype and subok are supported with their default values. Keyword argument kwargs is currently unsupported. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.See also
dpnp.expm1Calculate
exp(x) - 1for all elements in the array.dpnp.exp2Calculate 2**x for all elements in the array.
Examples
>>> import dpnp as np >>> x = np.arange(3.) >>> np.exp(x) array([1.0, 2.718281828, 7.389056099])