0

Is there anything like

sparse.add.at(a, indices, b),

or writing a Python for loop is the best we can do when we have duplicates in indices?

hpaulj
  • 221,503
  • 14
  • 230
  • 353
  • 2
    Duplicate indices in COO format inputs are summed when converted to CSR. This question needs a [mcve]. – hpaulj May 03 '22 at 16:03
  • 1
    More on the sparse handles duplicates, see this recent SO, https://stackoverflow.com/questions/72040697/fastest-add-with-repeated-indices-np-add-at-sparse-csr-matrix – hpaulj May 03 '22 at 16:33

0 Answers0