Skip to content

Commit 27b8617

Browse files
Merge pull request #256 from avik-pal/ap/vecjac
VecJac also has inplace definitions
2 parents db2f2ae + deaef93 commit 27b8617

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SparseDiffTools"
22
uuid = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
33
authors = ["Pankaj Mishra <pankajmishra1511@gmail.com>", "Chris Rackauckas <contact@chrisrackauckas.com>"]
4-
version = "2.5.0"
4+
version = "2.5.1"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/differentiation/vecjac_products.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ function VecJac(f, u::AbstractArray, p = nothing, t = nothing;
5858
throw(ArgumentError(msg))
5959
end
6060

61-
return FunctionOperator(L, u, u; isinplace = IIP, outofplace = OOP,
61+
# NOTE: The operator returned has both in-place and out-of-place definitions and
62+
# doesn't follow the convention of `f`
63+
return FunctionOperator(L, u, u; isinplace = true, outofplace = OOP,
6264
p, t, islinear = true, accepted_kwargs = (:VJP_input,), kwargs...)
6365
end
6466

0 commit comments

Comments
 (0)