  We classify all linear operators $A:V\to V$ satisfying $(Au,v)=(u,A^rv)$ and
all linear operators satisfying $(Au,A^rv)=(u,v)$ with $r=2,3,\dots$ on a
complex, real, or quaternion vector space with scalar product given by a
nonsingular symmetric, skew-symmetric, Hermitian, or skew-Hermitian form.
