evaluate - multiple declarations

Function evaluate

Evaluates an operation graph with a single root node.

dopt.core.types.Buffer evaluate (
  Operation op,
  dopt.core.types.Buffer[Operation] args = cast(Buffer[Operation])null
);

This overload is here for convenience. Internally, the multi-output version of evaluate is called.

Parameters

NameDescription
op The root node of the operation graph.
args A set of variable assignments.

Returns

A Buffer containing the result of the computation.

Function evaluate

Evaluates a several nodes from the operation graph.

dopt.core.types.Buffer[] evaluate (
  Operation[] ops,
  dopt.core.types.Buffer[Operation] args = cast(Buffer[Operation])null
);

Parameters

NameDescription
ops The nodes of the operation graph that values should be computed for.
args A set of variable assignments.

Returns

An array of Buffer objects, each containing the value of the corresponding element in ops.