cupy.correlate#

cupy.correlate(a, v, mode='valid')[source]#

Returns the cross-correlation of two 1-dimensional sequences.

Parameters:
  • a (cupy.ndarray) – first 1-dimensional input.

  • v (cupy.ndarray) – second 1-dimensional input.

  • mode (str, optional) – valid, same, full

Returns:

Discrete cross-correlation of a and v.

Return type:

cupy.ndarray