numpy.ma.convolve — NumPy v2.6.dev0 Manual

ma.convolve(a, v, mode='full', propagate_mask=True)

[source]

#

Returns the discrete, linear convolution of two one-dimensional sequences.

Parameters:a, varray_likeInput sequences.

mode{‘valid’, ‘same’, ‘full’}, optionalRefer to the np.convolve docstring.

propagate_maskboolIf True, then if any masked element is included in the sum for a result element, then the result is masked. If False, then the result element is only masked if no non-masked cells contribute towards it

Returns:outMaskedArrayDiscrete, linear convolution of a and v.

See also

numpy.convolve

Equivalent function in the top-level NumPy module.

numpy.ma.correlate

Cross-correlation of two 1-D sequences; see its examples for propagate_mask behaviour.