There should be no difference between the matrices [[]] and [], especially if they're printing as the same matrix. There is no mathematical reason for having a matrix consisting of one row and zero columns. Even if there were, there doesn't seem to be a way to create a matrix with zero rows and one column. I'm of the opinion that [[]] should be treated as having zero rows *and* zero columns.
On Apr 13, 11:18 am, David Harvey <[EMAIL PROTECTED]> wrote: > On Apr 13, 2007, at 2:08 PM, Robert Miller wrote: > > > sage: A = Matrix( GF(2), [[]] ) > > sage: B = Matrix( GF(2), [[0]] ) > > sage: A > > [] > > sage: B > > [0] > > sage: A.block_sum(B) > > > [0] > > [0] > > sage: A = Matrix( GF(2), [] ) > > sage: A > > [] > > sage: A.block_sum(B) > > [0] > > I don't understand the problem. In all cases, the number of rows of A > plus the number of rows of B equals the number of rows of > A.block_sum(B), and similarly for columns. What am I missing? > > david --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---