예제 #1
0
 def foo():
     x[None] = ti.neg(y[None])
     x[None] = ti.floor(x[None])
     y[None] = ti.ceil(y[None])
예제 #2
0
 def __neg__(self):
     _taichi_skip_traceback = 1
     return ti.neg(self)
예제 #3
0
 def __neg__(self):
     import taichi as ti
     return ti.neg(self)
예제 #4
0
 def __neg__(self):
     import taichi as ti
     _taichi_skip_traceback = 1
     return ti.neg(self)