dedalus.core.future
Classes for future evaluation.
Module Contents
- logger
- PREALLOCATE_OUTPUTS
- class Future(*args, domain=None, 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.
- arity
- store_last = False
- reset()
Restore original arguments.
- atoms(*types, include_out=False)
- has(*atoms)
- replace(old, new)
Replace an object in the expression tree.
- evaluate(id=None, force=True)
Recursively evaluate operation.
- attempt(id=None)
Recursively attempt to evaluate operation.
- meta()
- meta_dirichlet(axis)
- abstract meta_constant(axis)
- abstract meta_parity(axis)
- abstract meta_envelope(axis)
- abstract check_conditions()
Check that all argument fields are in proper layouts.
- abstract operate(out)
Perform operation.
- as_ncc_operator(frozen_arg_basis_meta, cutoff, max_terms, cacheid=None)
- class FutureScalar(*args, domain=None, out=None)
Class for deferred operations producing a Scalar.
- future_type
- meta
- class FutureArray(*args, domain=None, out=None)
Class for deferred operations producing an Array.
- future_type
- class FutureField(*args, domain=None, out=None)
Class for deferred operations producing a Field.
- future_type
- static parse(string, namespace, domain)
Build FutureField from a string expression.
- static cast(input, domain)
Cast an object to a FutureField.
- unique_domain(*args)
Return unique domain from a set of fields.