scipy.sparse
bsr_matrix.
set_shape
See reshape.
reshape
scipy.sparse.bsr_matrix.rint
scipy.sparse.bsr_matrix.setdiag