On Mon, 19 Feb 2024 at 07:15, <gabriel.fouge...@hotmail.fr> 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-benchmarks-ode-ivp-lowlevel-bench-py
>

Hi Gabriel,
your reply is interesting. Personally I find it hard to follow the scipy
repo example for using a LowlevelCallable from cython/c. The examples you
present at
https://github.com/gabrielfougeron/choreo/tree/main/choreo/scipy_plus/cython
are slightly easier to follow, but could be made clearer still - it's taken
me a while of glazing at the screen to start to follow things there.

I also didn't see an example (either yours or in scipy repo) for where the
LowlevelCallable could return an array/memoryview. This is often what one
would do from a cpdef'd cython function, rather than modifying an array
in-place.

Do you think it would be possible to develop your examples to the point
where it's an easier tutorial for using LowlevelCallable?

Andrew.
_______________________________________________
SciPy-Dev mailing list -- scipy-dev@python.org
To unsubscribe send an email to scipy-dev-le...@python.org
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: arch...@mail-archive.com

Reply via email to