File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 150150 f,
151151 x::AbstractArray{<:Number},
152152 cache::DerivativeCache{T1,T2,fdtype,returntype};
153- [epsilon_factor])
153+ relstep=default_relstep(fdtype, eltype(x)),
154+ absstep=relstep,
155+ dir=true)
154156
155157Compute the derivative `df` of a scalar-valued map `f` at a collection of points `x`.
156158
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+ relstep=default_relstep(fdtype, eltype(x)),
124+ absstep=relstep,
125+ dir=true)
124126
125127Gradients 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}`.
126128
171173 fdtype::Type{T1}=Val{:central},
172174 returntype::Type{T2}=eltype(df),
173175 inplace::Type{Val{T3}}=Val{true};
174- [epsilon_factor])
176+ relstep=default_relstep(fdtype, eltype(x)),
177+ absstep=relstep)
175178
176179Gradients 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}`.
177180
200203 f,
201204 x::AbstractArray{<:Number},
202205 cache::GradientCache;
203- [epsilon_factor])
206+ relstep=default_relstep(fdtype, eltype(x)),
207+ absstep=relstep
208+ dir=true)
204209
205210Gradients 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}`.
206211
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