>>> import numpy as np
>>> from scipy.sparse import csr_matrix
>>> row = np.array([0, 0, 1, 2, 2, 2])
>>> col = np.array([0, 2, 2, 0, 1, 2])
>>> data = np.array([1, 1, 1, 1, 1, 1])
>>> csr_matrix((data, (row, col)), shape=(3, 3)).toarray()
array([[1, 0, 1],
[0, 0, 1],
[1, 1, 1]])
>>> t=csr_matrix((data, (row, col)), shape=(3, 3))
>>> np.save('tfile',t)
>>> l=np.load('tfile.npy')
>>> l
array(<3x3 sparse matrix of type '<type 'numpy.int32'>'
with 6 stored elements in Compressed Sparse Row format>, dtype=object)
>>> l.tolist()
<3x3 sparse matrix of type '<type 'numpy.int32'>'
with 6 stored elements in Compressed Sparse Row format>
>>>