bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / signal / _signaltools / _apply_conv_mode
function
scipy.signal._signaltools:_apply_conv_mode
source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_signaltools.py:552
Signature
def _apply_conv_mode(ret, s1, s2, mode, axes, xp)Summary
Calculate the convolution result shape based on the mode argument.
Extended Summary
Returns the result sliced to the correct size for the given mode.
Parameters
ret: arrayThe result array, with the appropriate shape for the 'full' mode.
s1: list of intThe shape of the first input.
s2: list of intThe shape of the second input.
mode: str {'full', 'valid', 'same'}A string indicating the size of the output. See the documentation fftconvolve for more information.
axes: list of intsAxes over which to compute the convolution.
Returns
ret: arrayA copy of
res, sliced to the correct size for the givenmode.
Aliases
scipy.signal._signaltools._apply_conv_mode