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

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 .