SciPy

scipy.sparse.bsr_matrix.trunc

bsr_matrix.trunc()[source]

Element-wise trunc.

See numpy.trunc for more information.