SciPy

This is documentation for an old release of SciPy (version 1.5.3). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.sparse.dia_matrix.trunc

dia_matrix.trunc(self)[source]

Element-wise trunc.

See numpy.trunc for more information.

Previous topic

scipy.sparse.dia_matrix.transpose

Next topic

scipy.sparse.dok_matrix