def toeplitz(vect):
  """
  Find the toeplitz matrix as a list of lists given its first line/column.
  """
  return [[vect[abs(i-j)] for i in xrange(len(vect))]
                          for j in xrange(len(vect))]
def toeplitz ( vect ) : return [ [ vect [ abs ( i - j ) ] for i in xrange ( len ( vect ) ) ] for j in xrange ( len ( vect ) ) ]
Find the toeplitz matrix as a list of lists given its first line/column.