[Numpy-discussion] Update on using scons to build numpy

2008-01-12 Thread David Cournapeau
Hi there, A quick email to give an update on my work to build numpy with scons. I've finished a few days ago to make my former work a separate package from numpy: it was more work than I expected because of bootstrapping issues, but I can now build numpy again with the new package on

Re: [Numpy-discussion] Template system

2008-01-12 Thread Robert Kern
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. Can you put a tarball up

Re: [Numpy-discussion] Template system

2008-01-12 Thread Charles R Harris
On Jan 12, 2008 4:12 AM, Robert Kern [EMAIL PROTECTED] wrote: 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

Re: [Numpy-discussion] subclassing matrix

2008-01-12 Thread Basilisk96
On Jan 12, 1:36 am, Timothy Hochberg [EMAIL PROTECTED] wrote: I believe that you need to look at __array_finalize__ and __array_priority__ (and there may be one other thing as well, I can't remember; it's late). Search for __array_finalize__ and that will probably help get you started. Well

Re: [Numpy-discussion] subclassing matrix

2008-01-12 Thread Colin J. Williams
Basilisk96 wrote: On Jan 12, 1:36 am, Timothy Hochberg [EMAIL PROTECTED] wrote: I believe that you need to look at __array_finalize__ and __array_priority__ (and there may be one other thing as well, I can't remember; it's late). Search for __array_finalize__ and that will probably help get

Re: [Numpy-discussion] subclassing matrix

2008-01-12 Thread Basilisk96
Thanks Stefan and Colin, The subclass documentation made this a little clearer now. Instead of using a super() call in __new__, I now do this: #construct a matrix based on the input ret = _N.matrix(data, dtype=dtype) #promote it to Vector ret = ret.view(cls) The second statement