コード例 #1
0
ファイル: common_ops.py プロジェクト: taichi-dev/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."""
        return ops.assign(self, other)
コード例 #2
0
ファイル: struct.py プロジェクト: kokizzu/taichi
 def assign_renamed(x, y):
     return ops.assign(x, y)