FuncTupleElementRef#

class FuncTupleElementRef#

A fragment of front-end syntax of the form f(x, y, z)[index], where x, y, z are Vars or Exprs.

If could be the left hand side of an update definition, or it could be a call to a function. We don’t know until we see how this object gets used.

Public Functions

Stage operator=(const Expr &e)#

Use this as the left-hand-side of an update definition of Tuple component ‘idx’ of a Func (see RDom).

The function must already have an initial definition.

Stage operator+=(const Expr &e)#

Define a stage that adds the given expression to Tuple component ‘idx’ of this Func.

The other Tuple components are unchanged. If the expression refers to some RDom, this performs a sum reduction of the expression over the domain. The function must already have an initial definition.

Stage operator-=(const Expr &e)#

Define a stage that adds the negative of the given expression to Tuple component ‘idx’ of this Func.

The other Tuple components are unchanged. If the expression refers to some RDom, this performs a sum reduction of the negative of the expression over the domain. The function must already have an initial definition.

Stage operator*=(const Expr &e)#

Define a stage that multiplies Tuple component ‘idx’ of this Func by the given expression.

The other Tuple components are unchanged. If the expression refers to some RDom, this performs a product reduction of the expression over the domain. The function must already have an initial definition.

Stage operator/=(const Expr &e)#

Define a stage that divides Tuple component ‘idx’ of this Func by the given expression.

The other Tuple components are unchanged. If the expression refers to some RDom, this performs a product reduction of the inverse of the expression over the domain. The function must already have an initial definition.

operator Expr() const#

Use this as a call to Tuple component ‘idx’ of a Func, and not the left-hand-side of a definition.

inline Internal::Function function() const#

What function is this calling?

inline int index() const#

Return index to the function outputs.