Struct PeakModel::Context

Nested Relationships

This struct is a nested type of Template Struct PeakModel.

Struct Documentation

struct Context

Precomputed tables: S[n] = footprint of subset n’s result tensor, L[n] = sum of leaf (singleton) sizes in subset n, idx[n] = subset n’s open (result) indices (for the per-contraction flop tie-break), and flops_of(lhs, rhs, result) the flop count of one binary contraction.

Public Members

container::vector<double> S
container::vector<double> L
container::vector<IndexSet> idx
std::function<double(IndexSet const&, IndexSet const&, IndexSet const&)> flops_of
std::size_t volatile_mask = 0

Bitmask of volatile leaf tensors (for the flop tie-break weight).