Element-wise rad2deg.
See numpy.rad2deg for more information.
scipy.sparse.dia_matrix.nonzero
scipy.sparse.dia_matrix.reshape