scipy.sparse.csr_matrix.

trunc#

csr_matrix.trunc()[source]#

Element-wise trunc. See numpy.trunc for more information.

Returns:
truncsparse array / matrix

Result of applying numpy.trunc to the data of this sparse matrix.