bundles / scipy 1.17.1 / scipy / signal / _signaltools / _apply_conv_mode
function
scipy.signal._signaltools:_apply_conv_mode
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