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