scipy.sparse.dia_matrix.

sign#

dia_matrix.sign()[source]#

Element-wise sign.

See numpy.sign for more information.