SciPy

This is documentation for an old release of SciPy (version 1.2.3). Read this page in the documentation of the latest stable release (version 1.15.1).

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.