def _pad_h(h, up):
    h_padlen = len(h) + (-len(h) % up)
    h_full = np.zeros(h_padlen, h.dtype)
    h_full[:len(h)] = h
    h_full = h_full.reshape(-1, up).T[:, ::-1].ravel()
    return h_full
Store coefficients in a transposed, flipped arrangement.
dataset/ETHPy150Open scipy/scipy/scipy/signal/_upfirdn.py/_pad_h