{ } Raw JSON

bundles / scipy latest / scipy / signal / _signaltools / _inputs_swap_needed

function

scipy.signal._signaltools:_inputs_swap_needed

source: /scipy/signal/_signaltools.py :70

Signature

def   _inputs_swap_needed ( mode shape1 shape2 axes = None )

Summary

Determine if inputs arrays need to be swapped in "valid" mode.

Extended Summary

If in "valid" mode, returns whether or not the input arrays need to be swapped depending on whether shape1 is at least as large as shape2 in every calculated dimension.

This is important for some of the correlation and convolution implementations in this module, where the larger array input needs to come before the smaller array input when operating in this mode.

Note that if the mode provided is not 'valid', False is immediately returned.

Aliases

  • scipy.signal._signaltools._inputs_swap_needed