SciPy

scipy.sparse.lil_matrix.tobsr

lil_matrix.tobsr(self, blocksize=None, copy=False)[source]

Convert this matrix to Block Sparse Row format.

With copy=False, the data/indices may be shared between this matrix and the resultant bsr_matrix.

When blocksize=(R, C) is provided, it will be used for construction of the bsr_matrix.

Previous topic

scipy.sparse.lil_matrix.toarray

Next topic

scipy.sparse.lil_matrix.tocoo