File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 150
150
f,
151
151
x::AbstractArray{<:Number},
152
152
cache::DerivativeCache{T1,T2,fdtype,returntype};
153
- [epsilon_factor])
153
+ relstep=default_relstep(fdtype, eltype(x)),
154
+ absstep=relstep,
155
+ dir=true)
154
156
155
157
Compute the derivative `df` of a scalar-valued map `f` at a collection of points `x`.
156
158
Original file line number Diff line number Diff line change 120
120
fdtype::Type{T1}=Val{:central},
121
121
returntype::Type{T2}=eltype(x),
122
122
inplace::Type{Val{T3}}=Val{true};
123
- [epsilon_factor],
123
+ relstep=default_relstep(fdtype, eltype(x)),
124
+ absstep=relstep,
124
125
dir=true)
125
126
126
127
Gradients 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}`.
172
173
fdtype::Type{T1}=Val{:central},
173
174
returntype::Type{T2}=eltype(df),
174
175
inplace::Type{Val{T3}}=Val{true};
175
- [epsilon_factor])
176
+ relstep=default_relstep(fdtype, eltype(x)),
177
+ absstep=relstep)
176
178
177
179
Gradients 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}`.
178
180
201
203
f,
202
204
x::AbstractArray{<:Number},
203
205
cache::GradientCache;
204
- dir=true
205
- [epsilon_factor])
206
+ relstep=default_relstep(fdtype, eltype(x)),
207
+ absstep=relstep
208
+ dir=true)
206
209
207
210
Gradients 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}`.
208
211
You can’t perform that action at this time.
0 commit comments