dedalus.core.future
Classes for future evaluation.
Module Contents
- logger
- STORE_OUTPUTS
- STORE_LAST_DEFAULT
- class Future(*args, out=None)
Base class for deferred operations on data.
- Parameters:
*args (Operands) – Operands. Number must match class attribute arity, if present.
out (data, optional) – Output data object. If not specified, a new object will be used.
Notes
Operators are stacked (i.e. provided as arguments to other operators) to construct trees that represent compound expressions. Nodes are evaluated by first recursively evaluating their subtrees, and then calling the operate method.
- store_last
- args
- original_args
- out
- dist
- last_id = None
- scales = 1
- abstract bases()
- reset()
Restore original arguments.
- atoms(*types)
Gather all leaf-operands of specified types.
- has(*vars)
Determine if tree contains any specified operands/operators.
- replace(old, new)
Replace specified operand/operator.
- prep_nccs(vars)
- gather_ncc_coeffs()
- evaluate(id=None, force=True)
Recursively evaluate operation.
- get_out()
- build_out()
- attempt(id=None)
Recursively attempt to evaluate operation.
- abstract check_conditions()
Check that arguments are in a proper layout.
- abstract enforce_conditions()
Require arguments to be in a proper layout.
- abstract operate(out)
Perform operation.