class_docstr: Simple matrix data type.
  
  Of course there are much more advanced matrix data types for Python (for
  instance, the C{ndarray} data type of Numeric Python) and this implementation
  does not want to compete with them. The only role of this data type is to
  provide a convenient interface for the matrices returned by the C{Graph}
  object (for instance, allow indexing with tuples in the case of adjacency
  matrices and so on).
class_docstr_tok: ["Simple","matrix","data","type",".","Of","course","there","are","much","more","advanced","matrix","data","types","for","Python","(","for","instance",",","the","C","{","ndarray","}","data","type","of","Numeric","Python",")","and","this","implementation","does","not","want","to","compete","with","them",".","The","only","role","of","this","data","type","is","to","provide","a","convenient","interface","for","the","matrices","returned","by","the","C","{","Graph","}","object","(","for","instance",",","allow","indexing","with","tuples","in","the","case","of","adjacency","matrices","and","so","on",")","."]
docstr: Creates a matrix filled with the given value
  
  @param value: the value to be used
  @keyword shape: the shape of the matrix. Can be a single integer,
    two integers or a tuple. If a single integer is
    given here, the matrix is assumed to be square-shaped.
code: def Fill(cls, value, *args):
      """Creates a matrix filled with the given value
  
      @param value: the value to be used
      @keyword shape: the shape of the matrix. Can be a single integer,
        two integers or a tuple. If a single integer is
        given here, the matrix is assumed to be square-shaped.
      """
      if len(args) < 1:
          raise TypeError("expected an integer or a tuple")
      if len(args) == 1:
          if hasattr(args[0], "__len__"):
              height, width = int(args[0][0]), int(args[0][1])
          else:
              height, width = int(args[0]), int(args[0])
      else:
          height, width = int(args[0]), int(args[1])
      mtrx = [[value] * width for _ in range(height)]
      return cls(mtrx)
  
label_desc: Use image node_id 2 for calling the Matrix obj's underlying member method code with example usage: obj.Fill(cls, value) and returns: cls