File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 120120 fdtype::Type{T1}=Val{:central},
121121 returntype::Type{T2}=eltype(x),
122122 inplace::Type{Val{T3}}=Val{true};
123- [epsilon_factor])
123+ [epsilon_factor],
124+ dir=true)
124125
125126Gradients are either a vector->scalar map `f(x)`, or a scalar->vector map `f(fx,x)` if `inplace=Val{true}` and `fx=f(x)` if `inplace=Val{false}`.
126127
200201 f,
201202 x::AbstractArray{<:Number},
202203 cache::GradientCache;
204+ dir=true
203205 [epsilon_factor])
204206
205207Gradients are either a vector->scalar map `f(x)`, or a scalar->vector map `f(fx,x)` if `inplace=Val{true}` and `fx=f(x)` if `inplace=Val{false}`.
Original file line number Diff line number Diff line change 152152 absstep=relstep,
153153 colorvec = 1:length(x),
154154 sparsity = nothing,
155- jac_prototype = nothing)
155+ jac_prototype = nothing,
156+ dir=true)
156157
157158Cache-less.
158159"""
@@ -187,7 +188,8 @@ void_setindex!(args...) = (setindex!(args...); return)
187188 absstep=relstep,
188189 colorvec = cache.colorvec,
189190 sparsity = cache.sparsity,
190- jac_prototype = nothing)
191+ jac_prototype = nothing,
192+ dir=true)
191193
192194Cached.
193195"""
399401 relstep=default_relstep(fdtype, eltype(x)),
400402 absstep=relstep,
401403 colorvec = cache.colorvec,
402- sparsity = cache.sparsity)
404+ sparsity = cache.sparsity,
405+ dir=true)
403406
404407Cached.
405408"""
Original file line number Diff line number Diff line change 146146 v::AbstractArray{<:Number},
147147 cache::JVPCache;
148148 relstep=default_relstep(fdtype, eltype(x)),
149- absstep=relstep,)
149+ absstep=relstep,
150+ dir=true)
150151
151152Cached.
152153"""
You can’t perform that action at this time.
0 commit comments