scipy.sparse
dia_matrix.
trunc
Element-wise trunc.
See numpy.trunc for more information.
numpy.trunc
scipy.sparse.dia_matrix.transpose
scipy.sparse.dok_matrix