#NEWLINE# def __init__( self , ar , ma = None ) : #NEWLINE# #INDENT# self . ar = ar #NEWLINE# self . ma = ma #NEWLINE# ( nlags , nvarall , nvars ) = ar . shape #NEWLINE# ( self . nlags , self . nvarall , self . nvars ) = ( nlags , nvarall , nvars ) #NEWLINE# self . isstructured = ( not ( ar [ 0 , : nvars ] == np . eye ( nvars ) ) . all ( ) ) #NEWLINE# if ( self . ma is None ) : #NEWLINE# #INDENT# self . ma = np . eye ( nvars ) [ ( None , ... ) ] #NEWLINE# self . isindependent = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . isindependent = ( not ( ma [ 0 ] == np . eye ( nvars ) ) . all ( ) ) #NEWLINE# #UNINDENT# self . malags = ar . shape [ 0 ] #NEWLINE# self . hasexog = ( nvarall > nvars ) #NEWLINE# self . arm1 = ( - ar [ 1 : ] )