Tagged Questions
0
votes
0answers
53 views
What is the fastest way to slice a scipy.sparse matrix?
I normally use
matrix[:, i:]
It seems not work as fast as I expected.
1
vote
3answers
188 views
Norm of sparse python vectors
Is it possible to effectively obtain the norm of a sparse vector in python?
I tried the following:
from scipy import sparse
from numpy.linalg import norm
vector1 = sparse.csr_matrix([ 0 for i in ...
2
votes
1answer
731 views
Load sparse array from npy file
I am trying load a sparse array that I have previously saved. Saving the sparse array was easy enough. Trying to read it though is a pain. scipy.load returns a 0d array around my sparse array.
...