SciPy
coo_matrix.set_shape
Set the shape of the matrix in-place
previous
scipy.sparse.coo_matrix.rint
next
scipy.sparse.coo_matrix.setdiag