Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Low Matrices

New issue 2222 by [email protected]: Matrix([Matrix, ...]) should check the row length of empty matrices
http://code.google.com/p/sympy/issues/detail?id=2222

Currently, we have this:

In [20]: Matrix(([1,2,3], Matrix(0,1, lambda i,j:0)))
Out[20]: [1  2  3]

In [21]: Matrix(([1,2,3], Matrix(0, 3, lambda i,j:0)))
Out[21]: [1  2  3]

In [22]: Matrix(([1,2,3], Matrix(0, 4, lambda i,j:0)))
Out[22]: [1  2  3]

To be consistent, only the second version should work. The others should raise a ShapeError.

--
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.

Reply via email to