Skip to content

Commit 9b2bbd0

Browse files
format
1 parent c034718 commit 9b2bbd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/function/mtk.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function instantiate_function(f, x, adtype::AutoModelingToolkit, p, num_cons = 0
2323
hess = (H, θ, args...) -> f.hess(H, θ, p, args...)
2424

2525
hv = function (H, θ, v, args...)
26-
res = adtype.obj_sparse ? (eltype(θ)).(f.hess_prototype) : ArrayInterfaceCore.zeromatrix(θ)
26+
res = adtype.obj_sparse ? (eltype(θ)).(f.hess_prototype) :
27+
ArrayInterfaceCore.zeromatrix(θ)
2728
hess(res, θ, args...)
2829
H .= res * v
2930
end

0 commit comments

Comments
 (0)