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