Skip to content

Commit 63c46b2

Browse files
committed
teach unparse about matrix multiplication
1 parent 8b4c7ed commit 63c46b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/parser/unparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def _UnaryOp(self, t):
401401
self.dispatch(t.operand)
402402
self.write(")")
403403

404-
binop = { "Add":"+", "Sub":"-", "Mult":"*", "Div":"/", "Mod":"%",
404+
binop = { "Add":"+", "Sub":"-", "Mult":"*", "MatMult":"@", "Div":"/", "Mod":"%",
405405
"LShift":"<<", "RShift":">>", "BitOr":"|", "BitXor":"^", "BitAnd":"&",
406406
"FloorDiv":"//", "Pow": "**"}
407407
def _BinOp(self, t):

0 commit comments

Comments
 (0)