Implement efficient evaluation of dF/dtheta