コード例 #1
0
ファイル: common_ops.py プロジェクト: quadpixels/taichi
    def assign(self, other):
        """Assign the expression of the given operand to self.

        Args:
            other (Any): Given operand.

        Returns:
            :class:`~taichi.lang.expr.Expr`: The expression after assigning."""
        _taichi_skip_traceback = 1
        return ti.assign(self, other)
コード例 #2
0
ファイル: matrix.py プロジェクト: KineticPayload/mpmsim
 def assign_renamed(x, y):
     import taichi as ti
     return ti.assign(x, y)
コード例 #3
0
 def assign_renamed(x, y):
     return ti.assign(x, y)
コード例 #4
0
ファイル: common_ops.py プロジェクト: yueying/taichi
 def assign(self, other):
     import taichi as ti
     return ti.assign(self, other)
コード例 #5
0
 def assign(self, other):
     assert list(self.keys()) == list(other.keys())
     for k, v in other.items():
         ti.assign(getattr(self, k), v)
コード例 #6
0
 def assign(self, other):
     import taichi as ti
     _taichi_skip_traceback = 1
     return ti.assign(self, other)
コード例 #7
0
ファイル: common_ops.py プロジェクト: zxgtz/taichi
 def assign(self, other):
     _taichi_skip_traceback = 1
     return ti.assign(self, other)