scipy.sparse
dia_matrix.
diagonal
Returns the main diagonal of the matrix
scipy.sparse.dia_matrix.deg2rad
scipy.sparse.dia_matrix.dot