SciPy

scipy.sparse.csc_matrix.sign

csc_matrix.sign()[source]

Element-wise sign.

See numpy.sign for more information.