dpnp.allclose
- dpnp.allclose(x1, x2, rtol=1e-05, atol=1e-08, **kwargs)[source]
Returns True if two arrays are element-wise equal within a tolerance.
For full documentation refer to
numpy.allclose
.Limitations
Parameters
x1
andx2
are supported as eitherdpnp.ndarray
or scalar. Keyword argumentskwargs
are currently unsupported. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.Examples
>>> import dpnp as np >>> np.allclose([1e10,1e-7], [1.00001e10,1e-8]) >>> False