scipy.sparse
scipy.sparse.dia_matrix.setdiag
scipy.sparse.dia_matrix.sin
dia_matrix.
sign
Element-wise sign.
See numpy.sign for more information.