dpnp.correlate
- dpnp.correlate(x1, x2, mode='valid')[source]
Cross-correlation of two 1-dimensional sequences.
For full documentation refer to
numpy.correlate
.Limitations
Input arrays are supported as
dpnp.ndarray
. Size and shape of input arrays are supported to be equal. Parameter mode is supported only with default value"valid"
. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Available array data types.See also
dpnp.convolve
Discrete, linear convolution of two one-dimensional sequences.
Examples
>>> import dpnp as np >>> x = np.correlate([1, 2, 3], [0, 1, 0.5]) >>> [i for i in x] [3.5]