Quadratic cones invariant under some linear operators