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
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 h
On Sat, Jan 12, 2008 at 01:24:31PM -0800, Basilisk96 wrote:
[...]
> When is __array_finalize__ called? By adding some print traces, I can
> see it's called every time an array is modified in any way i.e.,
> reshaped, transposed, etc., and also during operations like u+v, u-v,
> A*u. But it's not
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.
>
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 i
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
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 Linux