Skip to content

Commit c53e70b

Browse files
committed
Kwargs for jacobian cache
1 parent 97153ff commit c53e70b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/highlevel/common.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ If `fx` is not specified, it will be computed by calling `f(x)`.
170170
171171
A cache for computing the Jacobian of type `AbstractMaybeSparseJacobianCache`.
172172
"""
173-
function sparse_jacobian_cache(ad::AbstractADType, sd::AbstractSparsityDetection, args...)
174-
return sparse_jacobian_cache_aux(mode(ad), ad, sd, args...)
173+
function sparse_jacobian_cache(
174+
ad::AbstractADType, sd::AbstractSparsityDetection, args...; kwargs...)
175+
return sparse_jacobian_cache_aux(mode(ad), ad, sd, args...; kwargs...)
175176
end
176177

177178
function sparse_jacobian_static_array(ad, cache, f, x::SArray)

0 commit comments

Comments
 (0)