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