Closed papamarkou closed 8 years ago
The following
using ReverseDiffSource res = rdiff(:(x[1]^3+x[2]^2) , x=[2., 3.], order=1) @eval foo(x) = $res foo([1.5, 2.8])
yields (11.215,[6.75,5.6]), whereas the following
(11.215,[6.75,5.6])
res = rdiff(:(x[1]^3+x[2]^2) , x=[2., 3.], order=1, allorders=false) @eval foo(x) = $res foo([1.5, 2.8])
gives 6.75. If I am not wrong, I think the latter should give [6.75,5.6] instead.
6.75
[6.75,5.6]
corrected with latest master
Thanks for this too!
I checked it from my end, works fine!
The following
yields
(11.215,[6.75,5.6])
, whereas the followinggives
6.75
. If I am not wrong, I think the latter should give[6.75,5.6]
instead.