Base class for all algorithms, containing generic routines and in particular the logic for index clas...
Definition Algorithm.hh:54
Definition Storage.hh:170
result_t
Keeping track of what algorithms have done to this expression.
Definition Storage.hh:200
Ex::sibling_iterator sibling_iterator
Definition ExManip.hh:14
Ex::iterator iterator
Definition ExManip.hh:12
std::multimap< Ex, Ex::iterator, tree_exact_less_for_indexmap_obj > index_map_t
A map from a pattern to the position where it occurs in the tree.
Definition IndexClassifier.hh:23
Definition eliminate_metric.hh:9
Ex preferred
Definition eliminate_metric.hh:20
bool handle_one_index(index_iterator i1, index_iterator i2, iterator fit, sibling_iterator objs)
See if the conversion which turns index 'i1' into index 'i2' can be applied on the expression,...
Definition eliminate_metric.cc:37
virtual bool is_conversion_object(iterator) const =0
IndexClassifier::index_map_t ind_dummy
Definition eliminate_metric.hh:21
bool redundant
Definition eliminate_metric.hh:22
virtual bool can_apply(iterator) override
Definition eliminate_metric.cc:31
virtual result_t apply(iterator &) override
Definition eliminate_metric.cc:106
IndexClassifier::index_map_t ind_free
Definition eliminate_metric.hh:21
Definition eliminate_metric.hh:35
virtual bool is_conversion_object(iterator) const override
Definition eliminate_metric.cc:17
An iterator which iterates over indices even if they are at lower levels, i.e.
Definition IndexIterator.hh:20
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83
void set(rset_t::iterator &num, multiplier_t fac)
Definition Storage.cc:1179