scipy.sparse.dia_matrix. tan# dia_matrix.tan()[source]# Element-wise tan. See numpy.tan for more information.