SciPy

scipy.sparse.lil_matrix.__getitem__

lil_matrix.__getitem__(self, index)[source]

Return the element(s) index=(i, j), where j may be a slice. This always returns a copy for consistency, since slices into Python lists return copies.