Skip to content
Snippets Groups Projects
Commit 32aca6f3 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

re-enable ` count_operations`

parent 36737eb4
No related branches found
No related tags found
1 merge request!408Refactor Field Indexing Symbols
Pipeline #67840 passed
......@@ -549,8 +549,6 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr], List[Assignment]],
Returns:
dict with 'adds', 'muls' and 'divs' keys
"""
raise NotImplementedError("count_operations is currently out of order.")
from pystencils.sympyextensions.fast_approximation import fast_sqrt, fast_inv_sqrt, fast_division
result = {'adds': 0, 'muls': 0, 'divs': 0, 'sqrts': 0,
......@@ -567,9 +565,6 @@ def count_operations(term: Union[sp.Expr, List[sp.Expr], List[Assignment]],
def check_type(e):
if only_type is None:
return True
# FIXME nbackend
# if isinstance(e, FieldPointerSymbol) and only_type == "real":
# return only_type == "int"
try:
# base_type = get_type_of_expression(e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment