diff --git a/sumpy/e2e.py b/sumpy/e2e.py index 7c28c968dc00d06e2e0f57dedb1f9e14761fb9a1..f5b349401fee21112ae5e72b28d1d1ec8183046a 100644 --- a/sumpy/e2e.py +++ b/sumpy/e2e.py @@ -76,23 +76,6 @@ class E2EBase(KernelCacheWrapper): self.dim = src_expansion.dim - def run_translation_and_cse(self): - from sumpy.symbolic import make_sympy_vector - dvec = make_sympy_vector("d", self.dim) - - src_coeff_exprs = [sp.Symbol("src_coeff%d" % i) - for i in range(len(self.src_expansion))] - - from sumpy.assignment_collection import SymbolicAssignmentCollection - sac = SymbolicAssignmentCollection() - tgt_coeff_names = [ - sac.assign_unique("coeff%d" % i, coeff_i) - for i, coeff_i in enumerate( - self.tgt_expansion.translate_from( - self.src_expansion, src_coeff_exprs, dvec))] - - sac.run_global_cse() - def get_translation_loopy_insns(self): from sumpy.symbolic import make_sympy_vector dvec = make_sympy_vector("d", self.dim) diff --git a/test/test_cse.py b/test/test_cse.py index b6fefdbf9197343be4c4176453175b995f4c3e31..f5fbcaaf0a9875e0e84a99fbaf8bfed455ea388a 100644 --- a/test/test_cse.py +++ b/test/test_cse.py @@ -64,18 +64,14 @@ DAMAGE. # }}} import pytest -import itertools import sys -from sympy import (Add, Pow, Symbol, exp, sqrt, symbols, sympify, S, cos, - sin, Eq, Function, Tuple, CRootOf, IndexedBase, Idx, - Piecewise) +from sympy import (Add, Pow, exp, sqrt, symbols, sympify, S, cos, sin, Eq, + Function, Tuple, CRootOf, IndexedBase, Idx, Piecewise) from sympy.simplify.cse_opts import sub_pre, sub_post from sympy.functions.special.hyper import meijerg from sympy.simplify import cse_opts -from sympy.core.compatibility import range - from sumpy.cse import ( cse, preprocess_for_cse, postprocess_for_cse)