@@ -91,19 +91,15 @@ function wrap_func(
9191end
9292
9393const _INPLACEOBJECTIVE_SPEC_V8 = (
94- fields = (:fdf , :fgh , :hvp , :fghvp , :fjvp ),
95- x_last = (:fdf , :fgh ),
96- xv_tail = (:hvp , :fghvp , :fjvp ),
94+ fields= (:fdf , :fgh , :hvp , :fghvp , :fjvp ),
95+ x_last= (:fdf , :fgh ),
96+ xv_tail= (:hvp , :fghvp , :fjvp ),
9797)
9898const _INPLACEOBJECTIVE_SPEC_V7 = (
99- fields = (:df , :fdf , :fgh , :hv , :fghv ),
100- x_last = (:df , :fdf , :fgh ),
101- xv_tail = (:hv , :fghv ),
99+ fields= (:df , :fdf , :fgh , :hv , :fghv ), x_last= (:df , :fdf , :fgh ), xv_tail= (:hv , :fghv )
102100)
103101const _INPLACEOBJECTIVE_SPEC_OLD = (
104- fields = (:fdf , :fgh , :hv , :fghv ),
105- x_last = (:fdf , :fgh ),
106- xv_tail = (:hv , :fghv ),
102+ fields= (:fdf , :fgh , :hv , :fghv ), x_last= (:fdf , :fgh ), xv_tail= (:hv , :fghv )
107103)
108104
109105@inline function _wrap_inplaceobjective_field (
@@ -141,7 +137,8 @@ function wrap_func(
141137 #
142138 # We use `@static` branching so that only the relevant layout for the *installed*
143139 # NLSolversBase version is compiled/instrumented.
144- @static if fieldnames (NLSolversBase. InplaceObjective) == _INPLACEOBJECTIVE_SPEC_V8. fields
140+ @static if fieldnames (NLSolversBase. InplaceObjective) ==
141+ _INPLACEOBJECTIVE_SPEC_V8. fields
145142 # NLSolversBase v8 / Optim v2
146143 return _wrap_inplaceobjective (f, tree, refs, _INPLACEOBJECTIVE_SPEC_V8)
147144 elseif fieldnames (NLSolversBase. InplaceObjective) == _INPLACEOBJECTIVE_SPEC_V7. fields
0 commit comments