'Eliminate duplicate matrix entries by adding them together
This is an *in place* operation'

def sum_duplicates(self):

    if self.has_canonical_format:
        return
    summed = self._sum_duplicates(self.row, self.col, self.data)
    (self.row, self.col, self.data) = summed
    self.has_canonical_format = True
