[Numpy-discussion] Unexpected output using numpy.ndarray and __radd__

2006-12-19 Thread Mark Hoffmann
Hi, The following issue has puzzled me for a while. I want to add a numpy.ndarray and an instance of my own class. I define this operation by implementing the methods __add__ and __radd__. My programme (including output) looks like: #!/usr/local/bin/python import numpy class Cyclehist: def

Re: [Numpy-discussion] Unexpected output using numpy.ndarray and __radd__

2006-12-18 Thread Stefan van der Walt
Hi Mark On Mon, Dec 18, 2006 at 08:30:20AM +0100, Mark Hoffmann wrote: > The following issue has puzzled me for a while. I want to add a numpy.ndarray > and an instance of my own class. I define this operation by implementing the > methods __add__ and __radd__. My programme (including output) look

[Numpy-discussion] Unexpected output using numpy.ndarray and __radd__

2006-12-17 Thread Mark Hoffmann
> Hi, > > The following issue has puzzled me for a while. I want to add a > numpy.ndarray and an instance of my own class. I define this operation > by implementing the methods __add__ and __radd__. My programme > (including output) looks like: > > #!/usr/local/bin/python > > import numpy > >