einsums::compute_graph::FactorTensor#

Note

Generated from the C++ headers by apiary --emit-cpp-docs-json.

Defined in header Einsums/ComputeGraph/Factorization.hpp.

class FactorTensor#

One factor tensor a provider introduces, described in the provider’s own alphabet.

Letters are the provider’s, not the graph’s. A provider describing DF writes the ERI’s axes as whatever it called them in FactorizationPlan::tagged_letters and the new auxiliary axis as a letter of its own; the pass renames all of them onto the letters the consuming contraction actually uses. That is what lets one provider serve every contraction a tagged tensor appears in, whatever letters those happen to be spelled with.

Added in version 2.0.0.

std::string name#

Name for the tensor the pass will create. Made unique if it collides.

std::vector<std::string> letters#

Its index letters, in axis order, in the provider’s alphabet.

std::vector<std::size_t> dims#

Extents, in letter order. A letter shared with the tagged tensor must agree with that tensor’s extent on the axis it names, which the pass checks rather than assumes.

std::vector<std::string> spaces#

Index-space names, in letter order. An empty string is an unannotated axis, which is legal and yields a weaker cost comparison rather than no comparison.

packed_gemm::ScalarType dtype#

Element type of the factor.