parameters: (self, matrix)
return_statement: return result
docstring: :type matrix: List[List[int]]
          :rtype: int
docstring_summary: :type matrix: List[List[int]]
          :rtype: int
docstring_tokens: : type matrix : List [ List [ int ]] : rtype : int
function: def largestSubmatrix(self, matrix):
          """
          :type matrix: List[List[int]]
          :rtype: int
          """
          for c in xrange(len(matrix[0])):
              h = 0
              for r in xrange(len(matrix)):
                  h = h+1 if matrix[r][c] == 1 else 0
                  matrix[r][c] = h
          result = 0
          for row in matrix:
              row.sort()
              for c in xrange(len(row)):
                  result = max(result, (len(row)-c) * row[c])
          return result
function_tokens: def largestSubmatrix ( self , matrix ) : for c in xrange ( len ( matrix [ 0 ] ) ) : h = 0 for r in xrange ( len ( matrix ) ) : h = h + 1 if matrix [ r ] [ c ] == 1 else 0 matrix [ r ] [ c ] = h result = 0 for row in matrix : row . sort ( ) for c in xrange ( len ( row ) ) : result = max ( result , ( len ( row ) - c ) * row [ c ] ) return result