SciPy

scipy.sparse.csr_matrix.rint

csr_matrix.rint()[source]

Element-wise rint.

See numpy.rint for more information.