Skip to content

Commit

Permalink
Merge 5946bc0 into d0d4237
Browse files Browse the repository at this point in the history
  • Loading branch information
tBuLi committed Apr 13, 2019
2 parents d0d4237 + 5946bc0 commit 12f0220
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions symfit/core/printing.py
Expand Up @@ -73,3 +73,10 @@ def _print_Idx(self, expr):
Print ``Idx`` objects.
"""
return "{0}".format(self._print(expr.args[0]))

def _print_MatPow(self, expr):
if expr.shape == (1, 1):
# Scalar, so we can take a normal power.
return self._print_Pow(expr)
else:
return super(SymfitNumPyPrinter, self)._print_MatPow(expr)

0 comments on commit 12f0220

Please sign in to comment.