def ar2full(ar):
 (nlags, nvar, nvarex) = ar.shape
 return np.r_[(np.eye(nvar, nvarex)[None, :, :], (- ar))]

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 .