@@ -6,10 +6,10 @@ function auto_jacvec!(
6
6
f,
7
7
x,
8
8
v,
9
- cache1 = Dual {typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1} .(x, ForwardDiff. Partials (reshape (v, size (x)))),
9
+ cache1 = Dual {typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1} .(x, ForwardDiff. Partials . (reshape (v, size (x)))),
10
10
cache2 = similar (cache1),
11
11
)
12
- cache1 .= Dual {typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1} .(x, ForwardDiff. Partials (reshape (v, size (x))))
12
+ cache1 .= Dual {typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1} .(x, ForwardDiff. Partials . (reshape (v, size (x))))
13
13
f (cache2, cache1)
14
14
vecdy = _vec (dy)
15
15
vecdy .= partials .(vec (cache2), 1 )
@@ -20,7 +20,7 @@ _vec(v::AbstractVector) = v
20
20
21
21
function auto_jacvec (f, x, v)
22
22
vv = reshape (v, axes (x))
23
- vec (partials .(vec (f (ForwardDiff. Dual {typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1} .(x, ForwardDiff. Partials (vv)))), 1 ))
23
+ vec (partials .(vec (f (ForwardDiff. Dual {typeof(ForwardDiff.Tag(DeivVecTag,eltype(x))),eltype(x),1} .(x, ForwardDiff. Partials . (vv)))), 1 ))
24
24
end
25
25
26
26
function num_jacvec! (
0 commit comments