Skip to content

Commit

Permalink
[skip ci] nit neg
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed May 10, 2020
1 parent a1ca2e5 commit 09c4f4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/taichi/lang/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ def stack_info():
# remove the confusing last line
return '\n'.join(raw.split('\n')[:-3]) + '\n'

def __neg__(self):
import taichi as ti
return ti.neg(self)

def __add__(self, other):
import taichi as ti
return ti.add(self, other)

__radd__ = __add__

def __neg__(self):
import taichi as ti
return ti.neg(self)

def __sub__(self, other):
import taichi as ti
return ti.sub(self, other)
Expand Down

0 comments on commit 09c4f4e

Please sign in to comment.