def corr_ar(k_vars, ar):
 from scipy.linalg import toeplitz
 if (len(ar) < k_vars):
  ar_ = np.zeros(k_vars)
  ar_[:len(ar)] = ar
  ar = ar_
 return toeplitz(ar)

def corr_ar ( k_vars , ar ) : from scipy . linalg import toeplitz if ( len ( ar ) < k_vars ) : ar_ = np . zeros ( k_vars ) ar_ [ : len ( ar ) ] = ar ar = ar_ return toeplitz ( ar )
create autoregressive correlation matrix this might be ma .