Skip to content

Commit f854382

Browse files
committed
Missing conj
1 parent dff4579 commit f854382

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • DifferentiationInterfaceTest/src/scenarios

DifferentiationInterfaceTest/src/scenarios/default.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function arr_to_num_hessian(x0)
306306
return convert(typeof(similar(x0, length(x0), length(x0))), H)
307307
end
308308

309-
arr_to_num_pushforward(x, dx) = sum(arr_to_num_gradient(x) .* dx)
309+
arr_to_num_pushforward(x, dx) = sum(conj.(arr_to_num_gradient(x)) .* dx)
310310
arr_to_num_pullback(x, dy) = arr_to_num_gradient(x) .* dy
311311
arr_to_num_hvp(x, dx) = reshape(arr_to_num_hessian(x) * vec(dx), size(x))
312312

0 commit comments

Comments
 (0)