Function evaluateCPU

Evaluates an several nodes from the operation graph using the CPU.

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

If the elements of ops have common dependencies, then each dependency is evaluated only once. For this reason it is recommended that this overload is used when multiple nodes should be evaluated.

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.