SciPy

scipy.sparse.dia_matrix.sign

dia_matrix.sign(self)[source]

Element-wise sign.

See numpy.sign for more information.

Previous topic

scipy.sparse.dia_matrix.setdiag

Next topic

scipy.sparse.dia_matrix.sin