scipy.sparse
scipy.sparse.dia_matrix.reshape
scipy.sparse.dia_matrix.set_shape
dia_matrix.
rint
Element-wise rint.
See numpy.rint for more information.