I have a sparse_csr matrix c and d:
a=np.array([[1,0,1],[0,0,1]])
b=np.array([[1,1,1],[1,0,1],[0,0,0]])
c=sparse.csr_matrix(a)
d=sparse.csr_matrix(b)
I am iteratively multiplying c and d like this:
for j in range(3):
c_new = d.dot(c.T).T
c = c_new
I observed the type(c)
is <class 'scipy.sparse.csc.csc_matrix'>
. This slows down to do matrix computation for large matrix inside every iteration. Is there any way to speed up the process keeping the "csr" format.