0

I have a sparse matrix in the coo format obtained from finite element assembly. It has many duplicate entries in the triplet format. I want to sum them up efficiently using Fortran. I went through the sparse kit package but I didn't find a subroutine that does this job. Any suggestions on how to achieve this efficiently? thanks.

bharat
  • 21
  • 1

1 Answers1

0

I don't know about your kit, but in the Python implementation, this summing is done as part of the conversion to csr format. The coo entries are sorted, by row, and within that by column. That puts duplicates next to each other.

hpaulj
  • 221,503
  • 14
  • 230
  • 353