diff --git a/devito/symbolics/inspection.py b/devito/symbolics/inspection.py index 7b02ca3ee6..629b260541 100644 --- a/devito/symbolics/inspection.py +++ b/devito/symbolics/inspection.py @@ -11,6 +11,7 @@ __all__ = ['count', 'estimate_cost', 'estimate_memory', 'dimension_sort'] + def count(exprs, query): """ Return a mapper ``{(k, v)}`` where ``k`` is a sub-expression in ``exprs``