Element-wise deg2rad.
See numpy.deg2rad for more information.
scipy.sparse.dia_matrix.count_nonzero
scipy.sparse.dia_matrix.diagonal