What is the function of copy argument in construction of scipy sparse arrays?
scipy.sparse.lil_matrix(arg1, shape=None, dtype=None, copy=False)
It doesn't seem to do anything!
When I construct a sparse matrix from another one and explicitly set copy=False, changing one matrix does not change the other.
import scipy.sparse as sp
import numpy as np
A = sp.csc_matrix(np.array([[1,0],[0,0]]))
B = sp.csr_matrix(A, copy=False)
B[1,1] = 1 #editing B should change A but it does not
print A.data, B.data #these values are different
Thanks