Comment #20 on issue 388 by [email protected]: sympification of matrices, Matrix is not Basic, creation of MutableBasic
http://code.google.com/p/sympy/issues/detail?id=388

Matrix still can't be sympified:


In [2]: sympify(Matrix([[1, 2], [3, 4]]))
---------------------------------------------------------------------------
SympifyError                              Traceback (most recent call last)
/Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython-input-2-7f7093c1c8bf> in <module>()
----> 1 sympify(Matrix([[1, 2], [3, 4]]))

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/sympify.pyc in sympify(a, locals, convert_xor, strict, rational)
    104         for superclass in getmro(cls):
    105             try:
--> 106                 return converter[superclass](a)
    107             except KeyError:
    108                 continue

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/matrices/matrices.py in _matrix_sympify(matrix)
   4050 def _matrix_sympify(matrix):
   4051     #return matrix.as_immutable()
-> 4052     raise SympifyError('Matrix cannot be sympified')
   4053 converter[MatrixBase] = _matrix_sympify
   4054 del _matrix_sympify

SympifyError: SympifyError: 'Matrix cannot be sympified'

MutableBasic should probably be a separate issue.

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