pystencils.backend.ast.expressions.PsTernary

pystencils.backend.ast.expressions.PsTernary#

class pystencils.backend.ast.expressions.PsTernary(cond, then, els)#

Ternary operator.

Parameters:
_clone_expr()#

Implementation of expression cloning.

Return type:

PsExpression

get_children()#

Retrieve child nodes of this AST node

This operation must be implemented by subclasses.

Return type:

tuple[PsExpression, ...]

set_child(idx, c)#

Update a child node of this AST node.

This operation must be implemented by subclasses.

Parameters: