I don't know much about SymPy's matrix engine, but it looks like `MutableDenseMatrix` gets converted to an immutable matrix, and `exp()` does not work on immutable matrices.