dpnp.log
- dpnp.log(x1, out=None, **kwargs)[source]
Trigonometric logarithm, element-wise.
For full documentation refer to
numpy.log.Limitations
Input array is supported as
dpnp.ndarray. Input array data types are limited by supported DPNP Data types.See also
dpnp.log10Return the base 10 logarithm of the input array, element-wise.
dpnp.log2Base-2 logarithm of x.
dpnp.log1pReturn the natural logarithm of one plus the input array, element-wise.
Examples
>>> import numpy >>> import dpnp as np >>> x = np.array([1.0, numpy.e, numpy.e**2, 0.0]) >>> out = np.log(x) >>> [i for i in out] [0.0, 1.0, 2.0, -inf]