Status: Valid
Owner: ----
CC: [email protected]
Labels: Type-Defect Priority-Medium Matrices

New issue 3487 by [email protected]: adjoint(A), conjugate(A), transpose(A) with A a MatrixSymbol
http://code.google.com/p/sympy/issues/detail?id=3487

It should return the appropriate instance of Adjoint, Transpose, or both.

from sympy import *
A = MatrixSymbol('A', 3, 3)
adjoint(A)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/function.py", line 281, in __new__
    result = super(Function, cls).__new__(cls, *args, **options)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/function.py", line 127, in __new__
    evaluated = cls.eval(*args)
  File "sympy/functions/elementary/complexes.py", line 542, in eval
    obj = arg._eval_adjoint()
  File "sympy/matrices/expressions/matexpr.py", line 124, in _eval_adjoint
    return self.T.conjugate()
  File "sympy/matrices/expressions/matexpr.py", line 136, in conjugate
    "conjugate not implemented for %s" % self.__class__.__name__)
NotImplementedError: conjugate not implemented for Transpose
conjugate(A)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/function.py", line 281, in __new__
    result = super(Function, cls).__new__(cls, *args, **options)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/function.py", line 127, in __new__
    evaluated = cls.eval(*args)
  File "sympy/functions/elementary/complexes.py", line 487, in eval
    obj = arg._eval_conjugate()
AttributeError: 'MatrixSymbol' object has no attribute '_eval_conjugate'
transpose(A)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/function.py", line 281, in __new__
    result = super(Function, cls).__new__(cls, *args, **options)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/function.py", line 127, in __new__
    evaluated = cls.eval(*args)
  File "sympy/functions/elementary/complexes.py", line 519, in eval
    obj = arg._eval_transpose()
  File "sympy/matrices/expressions/matexpr.py", line 112, in _eval_transpose
    raise NotImplementedError()
NotImplementedError

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