Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit a4ed331

Browse files
add missing partials
1 parent c0846a7 commit a4ed331

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/differentiation/jaches_products.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ _vec(v::AbstractVector) = v
2020

2121
function auto_jacvec(f, x, v)
2222
vv = reshape(v, axes(x))
23-
vec(partials.(vec(f(ForwardDiff.Dual{typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1}.(x, vv))), 1))
23+
vec(partials.(vec(f(ForwardDiff.Dual{typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1}.(x, ForwardDiff.Partials(vv)))), 1))
2424
end
2525

2626
function num_jacvec!(

0 commit comments

Comments
 (0)