sympy/sympy — pull request #1456 by mrocklin (2012-08-01 13:09:07+00:00)
Title: Trace

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.