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: Returns the maximum of the matrix along the given dimension
  
  @param dim: the dimension. 0 means determining the column maximums, 1 means
    determining the row maximums. If C{None}, the global maximum is
    returned.
code: def max(self, dim=None):
      """Returns the maximum of the matrix along the given dimension
  
      @param dim: the dimension. 0 means determining the column maximums, 1 means
        determining the row maximums. If C{None}, the global maximum is
        returned.
      """
      if dim == 1:
          return [max(row) for row in self._data]
      if dim == 0:
          return [
              max(row[idx] for row in self._data)
              for idx in range(self._ncol)
          ]
      return max(max(row) for row in self._data)
  
label_desc: Use image node_id 22 for calling the Matrix obj's underlying member method code with example usage: obj.max(dim) and returns: max, unknown, unknown