'In sympy is there a way to specific that a MatrixSymbol has real elements?

Looks like abs can't deal with complex values in some cases. In my problem, the elements are real, but I can't see a way to specify this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source