Kaydet (Commit) 63c46b25 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

teach unparse about matrix multiplication

üst 8b4c7ed6
...@@ -401,7 +401,7 @@ class Unparser: ...@@ -401,7 +401,7 @@ class Unparser:
self.dispatch(t.operand) self.dispatch(t.operand)
self.write(")") self.write(")")
binop = { "Add":"+", "Sub":"-", "Mult":"*", "Div":"/", "Mod":"%", binop = { "Add":"+", "Sub":"-", "Mult":"*", "MatMult":"@", "Div":"/", "Mod":"%",
"LShift":"<<", "RShift":">>", "BitOr":"|", "BitXor":"^", "BitAnd":"&", "LShift":"<<", "RShift":">>", "BitOr":"|", "BitXor":"^", "BitAnd":"&",
"FloorDiv":"//", "Pow": "**"} "FloorDiv":"//", "Pow": "**"}
def _BinOp(self, t): def _BinOp(self, t):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment