einsums::compute_graph::GroupedElementwiseDescriptor#
Note
Generated from the C++ headers by apiary --emit-cpp-docs-json.
Defined in header Einsums/ComputeGraph/Node.hpp.
-
class GroupedElementwiseDescriptor#
Metadata for the grouped element-wise kinds: @ref OpKind::GroupedPermute,
OpKind::GroupedDirectProductand @ref OpKind::GroupedDirectDivision.One type for the three because the cost model prices them the same way - every member touches its operands once, so the node’s serial time is the traffic the parent
Node’s operand lists already describe. What is recorded here is what those lists cannot carry: how many members there are and the per-member prefactors, so a pass can read the node instead of re-deriving it from the closure.Deliberately distinct from
GroupedAxpbyDescriptoreven though the two hold the same fields. A pass that probesget_if<GroupedAxpbyDescriptor>without checking the node kind would otherwise find a permute and reason about it as an AXPBY over one buffer.The parent
Nodecarries the inputs interleaved per member and the outputs in member order.-
static constexpr std::string_view descriptor_name#
The descriptor’s name: its identity inside an
OpDataand in a saved graph.
-
int total#
How many members the node holds.
-
std::vector<PrefactorScalar> alphas#
Per-member prefactor on the sources.
-
std::vector<PrefactorScalar> betas#
Per-member prefactor on the destination.
-
std::vector<std::string> c_indices#
Output index names, e.g.
{"j","i"}.
-
std::vector<std::string> a_indices#
Input index names, e.g.
{"i","j"}.
-
static constexpr std::string_view descriptor_name#