@@ -101,16 +101,16 @@ end
101101# We store the fields both as symbols (for runtime layout checks) and as `Val`s
102102# (so the wrapper construction is type-stable and can compile-in the field set).
103103const _INPLACEOBJECTIVE_SPEC_V8 = (
104- field_syms = (:fdf , :fgh , :hvp , :fghvp , :fjvp ),
105- fields = (Val (:fdf ), Val (:fgh ), Val (:hvp ), Val (:fghvp ), Val (:fjvp )),
106- x_last = (Val (:fdf ), Val (:fgh )),
107- xv_tail = (Val (:hvp ), Val (:fghvp ), Val (:fjvp )),
104+ field_syms= (:fdf , :fgh , :hvp , :fghvp , :fjvp ),
105+ fields= (Val (:fdf ), Val (:fgh ), Val (:hvp ), Val (:fghvp ), Val (:fjvp )),
106+ x_last= (Val (:fdf ), Val (:fgh )),
107+ xv_tail= (Val (:hvp ), Val (:fghvp ), Val (:fjvp )),
108108)
109109const _INPLACEOBJECTIVE_SPEC_V7 = (
110- field_syms = (:df , :fdf , :fgh , :hv , :fghv ),
111- fields = (Val (:df ), Val (:fdf ), Val (:fgh ), Val (:hv ), Val (:fghv )),
112- x_last = (Val (:df ), Val (:fdf ), Val (:fgh )),
113- xv_tail = (Val (:hv ), Val (:fghv )),
110+ field_syms= (:df , :fdf , :fgh , :hv , :fghv ),
111+ fields= (Val (:df ), Val (:fdf ), Val (:fgh ), Val (:hv ), Val (:fghv )),
112+ x_last= (Val (:df ), Val (:fdf ), Val (:fgh )),
113+ xv_tail= (Val (:hv ), Val (:fghv )),
114114)
115115
116116@inline function _wrap_inplaceobjective_field (
@@ -152,7 +152,8 @@ function wrap_func(
152152 _INPLACEOBJECTIVE_SPEC_V8. field_syms
153153 # NLSolversBase v8 / Optim v2
154154 return _wrap_inplaceobjective (f, tree, refs, _INPLACEOBJECTIVE_SPEC_V8)
155- elseif fieldnames (NLSolversBase. InplaceObjective) == _INPLACEOBJECTIVE_SPEC_V7. field_syms
155+ elseif fieldnames (NLSolversBase. InplaceObjective) ==
156+ _INPLACEOBJECTIVE_SPEC_V7. field_syms
156157 # NLSolversBase v7 / Optim v1
157158 return _wrap_inplaceobjective (f, tree, refs, _INPLACEOBJECTIVE_SPEC_V7)
158159 # (Optim < 1 is no longer supported.)
0 commit comments