[sympy] ImmutableMatrix bugs

2013-07-11 Thread F. B.
I noticed some methods of BasicMatrix use a trick to create a zero matrix, then compiling its values and returning it, e.g. newmat = self.zeros(self.rows, self.cols + rhs.cols) newmat[:, :self.cols] = self newmat[:, self.cols:] = rhs return newmat This works we

Re: [sympy] ImmutableMatrix bugs

2013-07-12 Thread Aaron Meurer
On Thu, Jul 11, 2013 at 3:51 AM, F. B. wrote: > I noticed some methods of BasicMatrix use a trick to create a zero matrix, > then compiling its values and returning it, e.g. > > newmat = self.zeros(self.rows, self.cols + rhs.cols) > > newmat[:, :self.cols] = self > > newma