diff --git a/src/differentiation/jaches_products.jl b/src/differentiation/jaches_products.jl index 6ce3c4f8..23b1df33 100644 --- a/src/differentiation/jaches_products.jl +++ b/src/differentiation/jaches_products.jl @@ -223,7 +223,8 @@ function (L::FwdModeAutoDiffVecProd)(dv, v, p, t) L.vecprod!(dv, L.f, L.u, v, L.cache...) end -function JacVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoForwardDiff()) +function JacVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoForwardDiff(), + kwargs...) cache, vecprod, vecprod! = if autodiff isa AutoFiniteDiff cache1 = similar(u) @@ -254,10 +255,12 @@ function JacVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoFo FunctionOperator(L, u, u; isinplace = isinplace, outofplace = outofplace, p = p, t = t, islinear = true, + kwargs..., ) end -function HesVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoForwardDiff()) +function HesVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoForwardDiff(), + kwargs...) cache, vecprod, vecprod! = if autodiff isa AutoFiniteDiff cache1 = similar(u) @@ -296,10 +299,12 @@ function HesVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoFo FunctionOperator(L, u, u; isinplace = isinplace, outofplace = outofplace, p = p, t = t, islinear = true, + kwargs..., ) end -function HesVecGrad(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoForwardDiff()) +function HesVecGrad(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoForwardDiff(), + kwargs...) cache, vecprod, vecprod! = if autodiff isa AutoFiniteDiff cache1 = similar(u) @@ -329,6 +334,7 @@ function HesVecGrad(f, u::AbstractArray, p = nothing, t = nothing; autodiff = Au FunctionOperator(L, u, u; isinplace = isinplace, outofplace = outofplace, p = p, t = t, islinear = true, + kwargs..., ) end # diff --git a/src/differentiation/vecjac_products.jl b/src/differentiation/vecjac_products.jl index 003e7671..c31f28c9 100644 --- a/src/differentiation/vecjac_products.jl +++ b/src/differentiation/vecjac_products.jl @@ -88,7 +88,7 @@ function (L::RevModeAutoDiffVecProd{ad,true,false})(dv, v, p, t) where{ad} end function VecJac(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoFiniteDiff(), - ishermitian = false, opnrom = true) + kwargs...) vecprod, vecprod! = if autodiff isa AutoFiniteDiff num_vecjac, num_vecjac! @@ -113,7 +113,7 @@ function VecJac(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoFi FunctionOperator(L, u, u; isinplace = isinplace, outofplace = outofplace, p = p, t = t, islinear = true, - ishermitian = ishermitian, opnorm = opnorm, + kwargs... ) end #