From: Travis O. <oli...@ie...> - 2003-06-06 17:10:48
|
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? > |