On Jan 21, 2009, at 11:34 AM, Darren Dale wrote: > I have a simple test script here that multiplies an ndarray subclass > with another number. Can anyone help me understand why each of these > combinations returns a new instance of MyArray: > > mine = MyArray() > print type(np.float32(1)*mine) > print type(mine*np.float32(1)) > print type(mine*np.float64(1)) > print type(1*mine) > print type(mine*1) > > but this one returns a np.float64 instance?
FYI, that's the same behavior as observed in ticket #826. A first thread addressed that issue http://www.mail-archive.com/[email protected]/msg13235.html But so far, no answer has been suggested. Any help welcome. _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
