[SciPy-Dev] Expose Lapack for Cython

Ian Henriksen insertinterestingnamehere at gmail.com
Wed Nov 19 13:17:01 EST 2014


On Mon, Nov 17, 2014 at 5:23 PM, Robert McGibbon <rmcgibbo at gmail.com> wrote:

> > We are only talking about making LAPACK available for Cython though. C
> and C++ extension modules would have to take care of this themselves
> using the Python C API. Perhaps we should provide an example on how to do
> that?
>
> Does anyone have information on how to do this? It would be very much
> appreciated.
>

Thanks for reminding me about this. The easiest solution for SciPy itself
would be to
declare all the function pointers as public and have Cython generate a
header file to
go along with the module so that C and C++ modules could use the
declarations with
less effort. I worked on that a little, but ran in to some trouble getting
complex types
to work properly. I'll revisit that in the next few days and see if I can
get it working.
I don't currently have a full working example on hand, but I'll get back to
you if I get
a good one put together.


>
> -Robert
>
> On Wed, Oct 1, 2014 at 11:12 AM, Chad Fulton <chadfulton at gmail.com> wrote:
>
>>
>>
>> On Thu, Sep 25, 2014 at 6:53 PM, Sturla Molden <sturla.molden at gmail.com>
>> wrote:
>>
>>> On 26/09/14 03:47, Sturla Molden wrote:
>>> > On 25/09/14 23:22, Ian Henriksen wrote:
>>> >
>>> >> I've opened this pull request
>>> >> <https://github.com/scipy/scipy/pull/4021> that implements this.
>>> There
>>> >> are still several things I'd like to finish before it gets merged, but
>>> >> the basic functionality is there. Feedback is welcome.
>>> >
>>>
>>
>> It would be great to have this in Scipy - we have done the same thing,
>> but on an ad hoc basis, in Statsmodels. It would be much preferred to have
>> it centralized. Thanks for the work.
>>
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>>
>>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20141119/6213eabd/attachment.html>


More information about the SciPy-Dev mailing list