[SciPy-Dev] Expose NonConvergence exception in scipy.optimize

2024-02-18 Thread Jake Bowhay
Hi all, In [1] it was pointed out that the NonConvergence exception is only available through scipy.optimize.nonlin which is deprecated. This is annoying if you want to catch this exception. I have opened [2] to expose NonConvergence in the main scipy.optimize namespace so that this exception

[SciPy-Dev] Re: Question: Can LowLevelCallable functions be beneficial to scipy.optimize performance?

2024-02-18 Thread gabriel . fougeron
Hi, I also have found tremendous benefits from LowLevelCallable in my applications. Here is a small benchmark I gathered : https://gabrielfougeron.github.io/choreo-docs/_build/auto_examples/benchmarks/ODE_ivp_LowLevel_bench.html#sphx-glr-build-auto-examples-benchmarks-ode-ivp-lowlevel-bench-pyI too

[SciPy-Dev] Re: Question: Can LowLevelCallable functions be beneficial to scipy.optimize performance?

2024-02-18 Thread Andrew Nelson
On Mon, 19 Feb 2024 at 07:15, wrote: > I also have found tremendous benefits from LowLevelCallable in my > applications. Here is a small benchmark I gathered : > https://gabrielfougeron.github.io/choreo-docs/_build/auto_examples/benchmarks/ODE_ivp_LowLevel_bench.html#sphx-glr-build-auto-examples-

[SciPy-Dev] Re: Question: Can LowLevelCallable functions be beneficial to scipy.optimize performance?

2024-02-18 Thread Andrew Nelson
Dear Oyibo, first of all, I should say that I'm not convinced that the example contained in the matecdev site is a good example. Whilst I haven't checked it seems that using `interpolate.LSQUnivariateSpline` may achieve what that poster was trying to accomplish, and would be much faster than the py