This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / signal / _signaltools / _calc_oa_lens

function

scipy.signal._signaltools:_calc_oa_lens

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

Signature

def _calc_oa_lens(s1, s2)

Summary

Calculate the optimal FFT lengths for overlap-add convolution.

Extended Summary

The calculation is done for a single dimension.

Parameters

s1 : int

Size of the dimension for the first array.

s2 : int

Size of the dimension for the second array.

Returns

block_size : int

The size of the FFT blocks.

overlap : int

The amount of overlap between two blocks.

in1_step : int

The size of each step for the first array.

in2_step : int

The size of each step for the second array.

Aliases

  • scipy.signal._signaltools._calc_oa_lens