tobsr — SciPy v1.15.2 Manual (original) (raw)
scipy.sparse.bsr_matrix.
bsr_matrix.tobsr(blocksize=None, copy=False)[source]#
Convert this array/matrix into Block Sparse Row Format.
With copy=False, the data/indices may be shared between this array/matrix and the resultant bsr_array/bsr_matrix.
If blocksize=(R, C) is provided, it will be used for determining block size of the bsr_array/bsr_matrix.