scipy.sparse.bsr_matrix.prune

bsr_matrix.prune()

Remove empty space after all non-zero elements.

This Page