[Numpy-discussion] Matrix.py has been fixed in CVS
Travis Oliphant
oliphant.travis at ieee.org
Fri Jun 6 10:11:08 EDT 2003
This is a bug in Matrix.py which has been fixed.
Here is the relevant section of code to replace the current
__setitem__ command in the Matrix class with:
def __setitem__(self, index, value):
value = asarray(value, self._typecode)
self.array[index] = squeeze(value)
Good luck,
Travis O.
>
> I find that 'sum' works with a Numeric
> array but fails with a Matrix. Am I doing something
> wrong? If not, what should I do to patch it?
>
More information about the NumPy-Discussion
mailing list