def ar2full(ar):
    nlags, nvar,nvarex = ar.shape
    return np.r_[np.eye(nvar,nvarex)[None,:,:],-ar]
make reduced lagpolynomial into a right side lagpoly array
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/varma_process.py/ar2full