[Numpy-discussion] Template system

2008-01-11 Thread Charles R Harris
Hi All, I'm thinking of adding the template system I pulled out of Django to Numpy to use in place of the current code generator. Its advantages are documentation, flexibility, and maintainance. The code totals about 470 KB, comes with a BSD license, and is compatible with Python = 2.3. I want to

Re: [Numpy-discussion] Template system

2008-01-11 Thread Robert Kern
Charles R Harris wrote: Hi All, I'm thinking of adding the template system I pulled out of Django to Numpy to use in place of the current code generator. Its advantages are documentation, flexibility, and maintainance. The code totals about 470 KB, comes with a BSD license, and is

Re: [Numpy-discussion] example of ufunc c-code?

2008-01-11 Thread Neal Becker
Neal Becker wrote: Where can I find a (hopefully simple) example of c-code for a ufunc? Wow, that was easy. Maybe you can use this as an example: #include boost/python/module.hpp #include boost/python/class.hpp #include boost/python/init.hpp #include boost/python/def.hpp #include

Re: [Numpy-discussion] Template system

2008-01-11 Thread Charles R Harris
On Jan 11, 2008 2:58 PM, Robert Kern [EMAIL PROTECTED] wrote: Charles R Harris wrote: Hi All, I'm thinking of adding the template system I pulled out of Django to Numpy to use in place of the current code generator. Its advantages are documentation, flexibility, and maintainance. The

[Numpy-discussion] wrap Python/numpy to C/C++. mingw. elmer.

2008-01-11 Thread mani sabri
Hi Sorry for irrelevant subject. I found elmer when I was googling for something to wrap my python/numpy code to C/C++ automatically because I want a dll for some application and I know nothing about python Api (shame on me). Does anybody successfully compiled elmer on windows with mingw? Or is

Re: [Numpy-discussion] Template system

2008-01-11 Thread Robert Kern
Charles R Harris wrote: On Jan 11, 2008 2:58 PM, Robert Kern [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Charles R Harris wrote: Hi All, I'm thinking of adding the template system I pulled out of Django to Numpy to use in place of the current code

Re: [Numpy-discussion] wrap Python/numpy to C/C++. mingw. elmer.

2008-01-11 Thread eric jones
Hey Mani, I've included Rick Ratzel on this since he is the author of elmer and may have more guidance. eric mani sabri wrote: Hi Sorry for irrelevant subject. I found elmer when I was googling for something to wrap my python/numpy code to C/C++ automatically because I want a dll for

Re: [Numpy-discussion] subclassing matrix

2008-01-11 Thread Basilisk96
On Jan 11, 2008, Colin J. Williams wrote: You make a good case that it's good not to need to ponder what sort of vector you are dealing with. My guess is that the answer to your question is no but I would need to play with your code to see that. My feeling is that, at the bottom of the

Re: [Numpy-discussion] Template system

2008-01-11 Thread Charles R Harris
OK, so far I've knocked it down to 35KB by removing stuff I'm not interested in. It is now smaller than Cog, and 7x larger than the file we now use to do the same job. I'm pretty sure I can make it leaner than that. It remains extensible. On Jan 11, 2008 7:02 PM, Robert Kern [EMAIL PROTECTED]

Re: [Numpy-discussion] subclassing matrix

2008-01-11 Thread Timothy Hochberg
On Jan 11, 2008 9:59 PM, Basilisk96 [EMAIL PROTECTED] wrote: On Jan 11, 2008, Colin J. Williams wrote: You make a good case that it's good not to need to ponder what sort of vector you are dealing with. My guess is that the answer to your question is no but I would need to play

Re: [Numpy-discussion] Template system

2008-01-11 Thread David Cournapeau
Charles R Harris wrote: OK, so far I've knocked it down to 35KB by removing stuff I'm not interested in. It is now smaller than Cog, and 7x larger than the file we now use to do the same job. I'm pretty sure I can make it leaner than that. It remains extensible. One good way to see whereas