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