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

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


We're not looking for the ufunc, but the underlying scalar call, along with
a type signature.  Is that exposed?

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

> On Thu, Jun 20, 2019, 08:38 Stanley Seibert <sseibert at anaconda.com> wrote:
>
>> (Numba dev here...)
>>
>> I don't think SciPy would need to take Numba as a dependency to solve
>> this, any more than cffi or ctypes does.  All we need on the Numba side is
>> a standard way, given a scipy.special function object to obtain the
>> underlying C function pointer and the C type signature (basic types, no
>> Python objects) of that function.  If there is a standard set of attributes
>> for us to pull that information from, the adapter can live inside the Numba
>> code base and SciPy needs minimal changes.
>>
>
> I think scipy.special functions are all ufuncs, so I guess there is
> already a way to pull out the underlying loop pointers if you're willing to
> mess around with the numpy C API. And numba hasn't shown any hesitation
> about that in the past :-).
>
> Is there a reason numba can't pull out the loops already, or why this is a
> bad approach to approach to aim for?
>
> -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/a7402049/attachment.html>


More information about the SciPy-Dev mailing list