pyre.calc

Package Contents

class pyre.calc.calculator

Bases: pyre.algebraic.algebra

Metaclass that grants nodes value management capabilities

pyre.calc.model(**kwds)

Build a node container that specializes in names that have encoded hierarchical levels, such as file paths or namespaces

pyre.calc.var(value=None, **kwds)

Build a variable, i.e. a node that can hold an arbitrary value

pyre.calc.expression(*, formula, model)

Build a new node that evaluates a {formula} that involves the names of other nodes as resolved in the symbol table {model}.

pyre.calc.sequence(*operands)

Build a node that holds a sequence of other nodes

pyre.calc.mapping(**operands)

Build a node that holds a sequence of other nodes

pyre.calc.average(*operands)

Compute the average of a collection of nodes

pyre.calc.count(*operands)

Compute the length of a collection of nodes

pyre.calc.max(*operands)

Compute the minimum of a collection of nodes

pyre.calc.min(*operands)

Compute the minimum of a collection of nodes

pyre.calc.product(*operands)

Compute the sum of a collection of nodes

pyre.calc.sum(*operands)

Compute the sum of a collection of nodes

pyre.calc.debug()

Support for debugging the calc package