parameters: (dimension=5)
return_statement: return numpy.array([shift(base, i) for i in range(-1, dimension - 1)])
docstring: Return the matrix corresponding to a system of beads on a string.
  
      Arguments:
          dimension: the number of beads, at least 4
  
      Returns:
          A dimension-by-dimension numpy matrix representing the linear system.
docstring_summary: Return the matrix corresponding to a system of beads on a string.
docstring_tokens: Return the matrix corresponding to a system of beads on a string .
function: def bead_matrix(dimension=5):
      """Return the matrix corresponding to a system of beads on a string.
  
      Arguments:
          dimension: the number of beads, at least 4
  
      Returns:
          A dimension-by-dimension numpy matrix representing the linear system.
      """
      if dimension < 4:
          raise ValueError("dimension must be at least 4")
      base = [1, -2, 1] + [0] * (dimension - 3)
      return numpy.array([shift(base, i) for i in range(-1, dimension - 1)])
function_tokens: def bead_matrix ( dimension = 5 ) : if dimension < 4 : raise ValueError ( "dimension must be at least 4" ) base = [ 1 , - 2 , 1 ] + [ 0 ] * ( dimension - 3 ) return numpy . array ( [ shift ( base , i ) for i in range ( - 1 , dimension - 1 ) ] )