[Matrix-SIG] A fix to recover old behavior for 1.12beta
Travis Oliphant
Oliphant.Travis@mayo.edu
Fri, 3 Sep 1999 18:22:25 -0500 (CDT)
This fix recovers the old behavior for rank-0 arrays (i.e. operations
returning rank-0 arrays are converted to Python scalars---again, I don't
think I like this behavior, though).
Added:
def _arrayret(self,val,copy=0):
if isarray(val):
return self.__class__(val,copy)
else:
return val
to the Array class
and replaced self.__class__ with self._arrayret in the class.
--Travis