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

Commit edac7af

Browse files
vpuri3ChrisRackauckas
authored andcommitted
dont need multiple update_coeff definitinos
1 parent efb05a5 commit edac7af

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/differentiation/vecjac_products.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,11 @@ function update_coefficients(L::RevModeAutoDiffVecProd, u, p, t)
6767
RevModeAutoDiffVecProd(L.f, u, L.vecprod, L.vecprod!, L.cache)
6868
end
6969

70-
function update_coefficients!(L::RevModeAutoDiffVecProd{true}, u, p, t)
70+
function update_coefficients!(L::RevModeAutoDiffVecProd, u, p, t)
7171
L.u .= u
7272
L
7373
end
7474

75-
function update_coefficients!(L::RevModeAutoDiffVecProd{false}, u, p, t)
76-
L.u .= u
77-
L.f(L.cache[1], L.u, L.p, L.t)
78-
L
79-
end
80-
8175
# Interpret the call as df/du' * u
8276
function (L::RevModeAutoDiffVecProd)(v, p, t)
8377
L.vecprod(_u -> L.f(_u, p, t), L.u, v)

0 commit comments

Comments
 (0)