[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-19 Thread Gabriel Fougeron
> Do you think it would be possible to develop your examples to the point where it's an easier tutorial for using LowlevelCallable? ==> TLDR: It depends. It really depends on what you mean by "using LowlevelCallable" >From a "user" point of view, creating a LowLevelCallable given a cython >functi

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

2024-02-19 Thread Gabriel Fougeron
I agree with what Andrew said. It I may give my two cents, I believe the next logical use of LowLevelCallable in scipy would be scipy.integrate.solve_ivp. It is quite similar to scipy.integrate.quad which already accepts LowLeveCallable, and would similarly benefit from not paying the cost of a