コード例 #1
0
ファイル: common_ops.py プロジェクト: quadpixels/taichi
    def atomic_or(self, other):
        """Return the new expression of computing atomic or between self and a given operand.

        Args:
            other (Any): Given operand.

        Returns:
            :class:`~taichi.lang.expr.Expr`: The computing expression of atomic or."""
        _taichi_skip_traceback = 1
        return ti.atomic_or(self, other)
コード例 #2
0
ファイル: common_ops.py プロジェクト: yueying/taichi
 def atomic_or(self, other):
     import taichi as ti
     return ti.atomic_or(self, other)
コード例 #3
0
 def func():
     a = 0
     for i in range(10):
         ti.atomic_or(a, 2**i)
     A[None] = a
コード例 #4
0
ファイル: test_atomic.py プロジェクト: zyl1336110861/taichi
 def func():
     c[None] = 0
     for i in range(10):
         # this is an expr with side effect, make sure it's not optimized out.
         ti.atomic_or(c[None], 2**i)
コード例 #5
0
 def atomic_or(self, other):
     import taichi as ti
     _taichi_skip_traceback = 1
     return ti.atomic_or(self, other)
コード例 #6
0
ファイル: common_ops.py プロジェクト: zxgtz/taichi
 def atomic_or(self, other):
     _taichi_skip_traceback = 1
     return ti.atomic_or(self, other)