This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / signal / _signaltools / _np_conv_ok

function

scipy.signal._signaltools:_np_conv_ok

source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_signaltools.py:1200

Signature

def _np_conv_ok(volume, kernel, mode, xp)

Summary

See if numpy supports convolution of volume and kernel (i.e. both are 1D ndarrays and of the appropriate shape). NumPy's 'same' mode uses the size of the larger input, while SciPy's uses the size of the first input.

Extended Summary

Invalid mode strings will return False and be caught by the calling func.

Aliases

  • scipy.signal._signaltools._np_conv_ok