[SciPy-Dev] Enabling use of scipy.special from Numba

Stanley Seibert sseibert at anaconda.com
Thu Jun 20 16:41:03 EDT 2019


Well, we'd prefer not to have an unnecessary indirection (and the overhead
of making a nested call to the scalar inside the length 1 loop) since the
user is doing their own iteration in Numba, but if that's the only option,
we can certainly work around it.

What is cython_special doing?  I was under the impression that the scalar
call is available there...

On Thu, Jun 20, 2019 at 3:31 PM Nathaniel Smith <njs at pobox.com> wrote:

> On Thu, Jun 20, 2019, 13:03 Stanley Seibert <sseibert at anaconda.com> wrote:
>
>> We're not looking for the ufunc, but the underlying scalar call, along
>> with a type signature.
>>
>
> I know that's what you're looking for. I'm hoping to understand why :-).
> The loop function pointer is very close to the raw scalar call, and it
> already has a type signature. Does the extra C level for loop add that much
> overhead?
>
> -n
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20190620/73eedbac/attachment.html>


More information about the SciPy-Dev mailing list