Comment #12 on issue 2222 by asmeurer: Matrix([Matrix, ...]) should check
the row length of empty matrices
http://code.google.com/p/sympy/issues/detail?id=2222
You might also look at http://en.wikipedia.org/wiki/Empty_matrix.
To quote the MATLAB docs you cited:
"The basic model for empty matrices is that any operation that is defined
for m-by-n matrices, and that produces a result whose dimension is some
function of m and n, should still be allowed when m or n is zero. The size
of the result of this operation is consistent with the size of the result
generated when working with nonempty values, but instead is evaluated at
zero.
For example, horizontal concatenation
C = [A B]
requires that A and B have the same number of rows. So if A is m-by-n and B
is m-by-p, then C is m-by-(n+p). This is still true if m or n or p is zero."
This is what I have been saying we should do.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.