Class ContractedIndexCount

Class Documentation

class ContractedIndexCount

Public Types

using Counts = AsyCost::ExponentMap

Public Functions

inline explicit ContractedIndexCount(meta::eval_node auto const &n)
inline bool is_outerprod() const noexcept
inline Counts const &unique_counts() const

Per-space count of distinct indices participating in the contraction. Each external, contracted, or batched index is counted once. For ordinary contractions (no batched index) this equals (L[s] + R[s] + T[s]) / 2.