scipy.sparse.dia_matrix.

sin#

dia_matrix.sin()[source]#

Element-wise sin. See numpy.sin for more information.

Returns:
sinsparse array / matrix

Result of applying numpy.sin to the data of this sparse matrix.