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