Skip to main content
3 votes

How to efficiently fill in, in parallel, a PETSc matrix from a COO sparse matrix?

The problem is your loop iterates through all possible rows, but your COO data has more than that amount of data (only 5 rows, but you have 6 COO entries because you sum into position 0,0 twice). ...
helloworld922's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible