Stability of closed characteristics on compact convex hypersurfaces in $$\mathbf{R}^{2n}$$R2n