def _add_sparse(self, other, alpha, beta): self.sum_duplicates() other.sum_duplicates() return cusparse.csrgeam(self.T, other.tocsc().T, alpha, beta).T
def _add_sparse(self, other, alpha, beta): return cusparse.csrgeam(self.T, other.tocsc().T, alpha, beta).T