JuliaDiff / FiniteDifferences.jl

High accuracy derivatives, estimated via numerical finite differences (formerly FDM.jl)
MIT License
297 stars 26 forks source link

Error if given nonfinite primal? #192

Open oxinabox opened 2 years ago

oxinabox commented 2 years ago

We can't really do finite differencing around Inf or NaN can we?

mzgubic commented 2 years ago

It's fine to get it a NaN as a primal input if it's marked as non differentiable right?

oxinabox commented 2 years ago

Correct