SciPy

scipy.sparse.dia_matrix.transpose

dia_matrix.transpose()[source]