scipy.sparse.dia_matrix. tan# dia_matrix.tan()[source]# Element-wise tan. See numpy.tan for more information. Returns: tansparse array / matrixResult of applying numpy.tan to the data of this sparse matrix.