I want to know how to efficiently add sparse matrices in Python.
I have a program that breaks down a large task into subtasks and distributes them across several processors. Each subtask gives a result (scipy sparse matrix, formatted as: lil_matrix ).
Rare matrix sizes: 100000x500000, which is quite large, so I really need the most efficient way to sum all the resulting sparse matrices into a single sparse matrix using some C-compiled method or something like that.
source share