dpnp.sqrt

dpnp.sqrt(x1)[source]

Return the positive square-root of an array, element-wise.

For full documentation refer to numpy.sqrt.

Limitations

Input array is supported as dpnp.ndarray. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.

Examples

>>> import dpnp as np
>>> x = np.array([1, 4, 9])
>>> out = np.sqrt(x)
>>> [i for i in out]
[1.0, 2.0, 3.0]