tobsr
scipy.sparse.dok_matrix.
- dok_matrix.tobsr(blocksize=None, copy=False)
Convert this array/matrix to Block Sparse Row format.
- Parameters:
- blocksize : tuple of ints, optional
When
blocksize=(R,is provided, it will be used for construction of the bsr_array/matrix.