You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sage: matrix(2, 3, [])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-11-2927290cdaf3> in <module>()
----> 1 matrix(Integer(2), Integer(3), [])
/home/marc/opt/sage/local/lib/python2.7/site-packages/sage/matrix/constructor.pyc in _matrix_constructor(*args, **kwds)
647
648 if nrows > 0 and ncols > 0 and ring is None:
--> 649 entries, ring = prepare(entries)
650
651 elif isinstance(args[0], dict):
/home/marc/opt/sage/local/lib/python2.7/site-packages/sage/matrix/constructor.pyc in prepare(w)
794 TypeError: unable to find a common ring for all elements
795 """
--> 796 if 0 == len(w):
797 return Sequence([], rings.ZZ), rings.ZZ
798 entries = Sequence(w)
TypeError: object of type 'int' has no len()
Compare:
Component: linear algebra
Issue created by migration from https://trac.sagemath.org/ticket/19134
The text was updated successfully, but these errors were encountered: