[SciPy-Dev] Documentation to use LowLevelCallable from cython

Andrew Nelson andyfaff at gmail.com
Sun Feb 18 16:08:29 EST 2018


Sorry if I wasn't clear. I'll look at those two places. What I was hoping
to do is have a generic way of calling a LowLevelCallable in cython:

<in cython>

cpdef func_caller(LowLevelCallable func, a, b, c, ...):

    return_value = func(a, b, c)

    return return_value



On 19 February 2018 at 05:37, Stefan van der Walt <stefanv at berkeley.edu>
wrote:

> Hi Andrew
>
> On Sun, 18 Feb 2018 22:40:05 +1100, Andrew Nelson wrote:
> > I was wondering if there was a guide to demonstrate how to use a
> > LowLevelCallable from cython? Is it possible, and does it lead to any
> speed
> > benefits if all looping is done from cython?
>
> I have an example of how to use LowLevelCallable with Cython (and
> Numba--courtesy of Juan Nunez-Iglesias) in this notebook:
>
> https://github.com/scikit-image/skimage-tutorials/blob/
> master/lectures/other_libraries.ipynb
>
> Best regards
> Stéfan
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>



-- 
_____________________________________
Dr. Andrew Nelson


_____________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180219/785a773f/attachment.html>


More information about the SciPy-Dev mailing list