dpnp.exp

dpnp.exp(x1, out=None, **kwargs)[source]

Trigonometric exponent, element-wise.

For full documentation refer to numpy.exp.

Limitations

Input array is supported as dpnp.ndarray. Input array data types are limited by supported DPNP Data types.

See also

dpnp.expm1

Calculate exp(x) - 1 for all elements in the array.

dpnp.exp2

Calculate 2**x for all elements in the array.

Examples

>>> import dpnp as np
>>> x = np.arange(3.)
>>> out = np.exp(x)
>>> [i for i in out]
[1.0, 2.718281828, 7.389056099]