MCPcopy Index your code
hub / github.com/numpy/numpy / convolve

Function convolve

numpy/ma/core.py:8430–8455  ·  view source on GitHub ↗

Returns the discrete, linear convolution of two one-dimensional sequences. Parameters ---------- a, v : array_like Input sequences. mode : {'valid', 'same', 'full'}, optional Refer to the `np.convolve` docstring. propagate_mask : bool If True, then i

(a, v, mode='full', propagate_mask=True)

Source from the content-addressed store, hash-verified

8428
8429
8430def convolve(a, v, mode='full', propagate_mask=True):
8431 """
8432 Returns the discrete, linear convolution of two one-dimensional sequences.
8433
8434 Parameters
8435 ----------
8436 a, v : array_like
8437 Input sequences.
8438 mode : {'valid', 'same', 'full'}, optional
8439 Refer to the `np.convolve` docstring.
8440 propagate_mask : bool
8441 If True, then if any masked element is included in the sum for a result
8442 element, then the result is masked.
8443 If False, then the result element is only masked if no non-masked cells
8444 contribute towards it
8445
8446 Returns
8447 -------
8448 out : MaskedArray
8449 Discrete, linear convolution of `a` and `v`.
8450
8451 See Also
8452 --------
8453 numpy.convolve : Equivalent function in the top-level NumPy module.
8454 """
8455 return _convolve_or_correlate(np.convolve, a, v, mode, propagate_mask)
8456
8457
8458def allequal(a, b, fill_value=True):

Callers

nothing calls this directly

Calls 1

_convolve_or_correlateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…