#14314: Matrices _matrix_() method is inconsistent with expected arguments
------------------------------+---------------------------------------------
Reporter: tscrim | Owner: tscrim
Type: defect | Status: new
Priority: major | Milestone: sage-5.9
Component: linear algebra | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Travis Scrimshaw
Merged in: | Dependencies:
Stopgaps: |
------------------------------+---------------------------------------------
{{{
sage: m = matrix({(0,0):4,(5,3):2})
sage: matrix(m)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
<ipython-input-24-c5a0911a1542> in <module>()
----> 1 matrix(m)
/home/travis/sage-5.8.beta1/local/lib/python2.7/site-
packages/sage/matrix/constructor.pyc in _matrix_constructor(*args, **kwds)
526 return args[0]._matrix_(sparse=sparse)
527 except TypeError:
--> 528 return args[0]._matrix_()
529 elif len(args) == 2:
530 if hasattr(args[0], '_matrix_'):
TypeError: _matrix_() takes exactly one argument (0 given)
}}}
In both sparse and dense integer matrices (I didn't check for other
kinds), the expected input is 1 argument of a new ring for the entries.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14314>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.