(self, dim=None)
return max(max(row) for row in self._data)
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.
Returns the maximum of the matrix along the given dimension
Returns the maximum of the matrix along the given dimension
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)
def max ( self , dim = None ) : 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 )