I'm in a situation where I have a large sized matrix a
. The size of a
is 2708*2708 and type is <class 'scipy.sparse.csr.csr_matrix'>. I want to calculate some updating equation using a
.
And the calculation process is like this:
adj = (a.dot(a.T) + a.T.dot(a)) / LA.norm(a.dot(a.T) + a.T.dot(a))
for k in range(1, 10):
adj = (a.dot(adj).dot(a.T) +a.T.dot(adj).dot(a)) / (LA.norm(a.dot(adj).dot(a.T) + a.T.dot(eadj).dot(a)))
But this gives me
zsh: killed
I guess the size of matrix causing this but how can I prevent this?
Is there a way to finish this calculation without killed
error?