This adds a Trace Expr for matrix expressions

It is modeled after the Transpose object and is fairly simple. It plays nicely 
with dense explicitly defined matrices.

You can merge this Pull Request by running:

  git pull https://github.com/mrocklin/sympy trace

Or you can view, comment on it, or merge it online at:

  https://github.com/sympy/sympy/pull/1456

-- Commit Summary --

* Distributed transpose logic
* Remove unnecessary MatAdd and MatMul imports
* added _ to eval_transpose in matexpr
* Decentralize Inverse logic
* cleaned up imports
* revert test to use == rather than .equals
* added Trace expression for MatrixExprs

-- File Changes --

M sympy/matrices/expressions/__init__.py (1)
M sympy/matrices/expressions/blockmatrix.py (16)
M sympy/matrices/expressions/inverse.py (28)
M sympy/matrices/expressions/matadd.py (4)
M sympy/matrices/expressions/matexpr.py (12)
M sympy/matrices/expressions/matmul.py (13)
M sympy/matrices/expressions/tests/test_matrix_exprs.py (17)
A sympy/matrices/expressions/trace.py (33)
M sympy/matrices/expressions/transpose.py (21)
M sympy/matrices/immutable_matrix.py (1)
M sympy/matrices/matrices.py (8)

-- Patch Links --

  https://github.com/sympy/sympy/pull/1456.patch
  https://github.com/sympy/sympy/pull/1456.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/sympy/sympy/pull/1456

-- 
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to