einsums::compute_graph::DestinationUse#
Note
Generated from the C++ headers by apiary --emit-cpp-docs-json.
Defined in header Einsums/ComputeGraph/DescriptorHooks.hpp.
-
class DestinationUse#
Whether a node reads the tensor it writes, and how its input list says so.
The destination rule (DestinationRead.hpp) lists a node’s operands first and its destination once, trailing, exactly when the node reads it. A node with one output that gives
operand_countis held to that rule: its input list is brought into line at capture and after every pass, andGraph::verifyreports a node that breaks it.-
bool reads#
Reads the prior contents of its destination (accumulates into it, or updates it in place).
-
bool overwrites_all#
Writes every element of its destination, so any earlier write to it is dead.
-
std::optional<std::size_t> operand_count#
Operand inputs listed before the destination, for a node with one output. Empty leaves the node outside the rule, listing its inputs as it chooses.
-
bool reads#