Struct PreprocessResult

Struct Documentation

struct PreprocessResult

A collection of various meta-data that the preprocessing stage will collect.

Public Members

std::unordered_map<std::size_t, ExprPtr> scalarFactors
std::set<Index> indices
std::map<Tensor, UsageSet, TensorBlockLessThanComparator> tensors
std::map<Variable, UsageSet> variables
std::map<Tensor, std::size_t, TensorBlockLessThanComparator> tensorReferences
std::map<Variable, std::size_t> variableReferences
opt::IntermediateNamePool names  {[](std::wstring_view basename, std::size_t counter) {return counter == 1 ? std::wstring(basename): std::wstring(basename) + std::to_wstring(counter);}}

Names of all tensors and variables encountered so far along with how often they are currently referenced. Labels are generated as basename, basename2, basename3, …

std::unordered_map<std::size_t, AnyIrrepSet> nodeIrreps

The IRREPs of the result of every node (only if an IRREP context is set).