Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-14 Thread Jason McCampbell
Hi Dan, I am just catching up with the mailing list after falling behind getting a release. I am the PM for Enthought's part of refactoring NumPy. The first phase of the refactoring project is done except for some clean up and the new version of NumPy is quite stable. (25 regression failures

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-14 Thread Ondrej Certik
Hi Sturla, On Tue, Mar 8, 2011 at 6:25 AM, Sturla Molden stu...@molden.no wrote: Den 08.03.2011 05:05, skrev Dan Halbert: Thanks, that's a good suggestion. I have not written Fortran since 1971, but it's come a long way. I was a little worried about the row-major vs column-major issue, but

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-08 Thread Sebastien Binet
On Mon, 7 Mar 2011 23:07:32 -0500, Dan Halbert halb...@halwitz.org wrote: On 3/7/2011 9:25 PM, Nathaniel Smith wrote: On Mon, Mar 7, 2011 at 3:36 PM, Dan Halberthalb...@halwitz.org wrote: Or is there some higher-level compiled array language that looks something like NumPy code? You

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-08 Thread Sturla Molden
Den 08.03.2011 05:05, skrev Dan Halbert: Thanks, that's a good suggestion. I have not written Fortran since 1971, but it's come a long way. I was a little worried about the row-major vs column-major issue, but perhaps that can be handled just by remembering to reverse the subscript order

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Christopher Barker
On 3/7/11 3:36 PM, Dan Halbert wrote: We currently have some straightforward NumPy code that indirectly implements a C API defined by a third party. We built a Cython layer that directly provides the API in a .a library, and then calls Python. The layering looks like this: C main

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Dan Halbert
On 3/7/2011 6:48 PM, Christopher Barker wrote: On 3/7/11 3:36 PM, Dan Halbert wrote: We currently have some straightforward NumPy code that indirectly implements a C API defined by a third party. We built a Cython layer that directly provides the API in a .a library, and then calls Python.

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Sturla Molden
Den 08.03.2011 00:36, skrev Dan Halbert: Do you all have some recommendations about tools, libraries, or languages that you have used to rewrite NumPy code easily into something that's more self-contained and callable from C? Fortran 95 It has the power of C, without the unsafe pointer

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Nathaniel Smith
On Mon, Mar 7, 2011 at 3:36 PM, Dan Halbert halb...@halwitz.org wrote: Or is there some higher-level compiled array language that looks something like NumPy code? You might want to try Eigen: http://eigen.tuxfamily.org/ -- Nathaniel ___

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Dan Halbert
On 3/7/2011 9:13 PM, Sturla Molden wrote: Den 08.03.2011 00:36, skrev Dan Halbert: Do you all have some recommendations about tools, libraries, or languages that you have used to rewrite NumPy code easily into something that's more self-contained and callable from C? Fortran 95 It has

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Dan Halbert
On 3/7/2011 9:25 PM, Nathaniel Smith wrote: On Mon, Mar 7, 2011 at 3:36 PM, Dan Halberthalb...@halwitz.org wrote: Or is there some higher-level compiled array language that looks something like NumPy code? You might want to try Eigen: http://eigen.tuxfamily.org/ Thanks - didn't know

Re: [Numpy-discussion] rewriting NumPy code in C or C++ or similar

2011-03-07 Thread Robert Bradshaw
On Mon, Mar 7, 2011 at 4:22 PM, Dan Halbert halb...@halwitz.org wrote: On 3/7/2011 6:48 PM, Christopher Barker wrote: On 3/7/11 3:36 PM, Dan Halbert wrote: We currently have some straightforward NumPy code that indirectly implements a C API defined by a third party. We built a Cython layer