scipy.sparse.bsr_array.tobsr#

bsr_array.tobsr(blocksize=None, copy=False)[source]#

Convert this matrix into Block Sparse Row Format.

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

If blocksize=(R, C) is provided, it will be used for determining block size of the bsr_array.