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 / _upfirdn / _pad_h

function

scipy.signal._upfirdn:_pad_h

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

Signature

def _pad_h(h, up)

Summary

Store coefficients in a transposed, flipped arrangement.

Extended Summary

For example, suppose upRate is 3, and the input number of coefficients is 10, represented as h[0], ..., h[9].

Then the internal buffer will look like this

h[9], h[6], h[3], h[0],   // flipped phase 0 coefs
0,    h[7], h[4], h[1],   // flipped phase 1 coefs (zero-padded)
0,    h[8], h[5], h[2],   // flipped phase 2 coefs (zero-padded)

Aliases

  • scipy.signal._upfirdn._pad_h