SciPy
coo_array.trace
Returns the sum along diagonals of the sparse array.
Which diagonal to get, corresponding to elements a[i, i+offset]. Default: 0 (the main diagonal).
previous
scipy.sparse.coo_array.tolil
next
scipy.sparse.coo_array.transpose