when flag==0 (or options_.hess==0), we force to use the hessian from outer product gradient computed in optimizer == 5.