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

Remove unneccesary doctest code; add more descriptive TODO comments

parent 5d9e47f3
No related branches found
No related tags found
1 merge request!410Some minor internal and API fixes
Pipeline #67944 passed
...@@ -22,7 +22,7 @@ def aligned_empty(shape, byte_alignment=True, dtype=np.float64, byte_offset=0, o ...@@ -22,7 +22,7 @@ def aligned_empty(shape, byte_alignment=True, dtype=np.float64, byte_offset=0, o
# get_vector_instruction_set) # get_vector_instruction_set)
# instruction_sets = get_supported_instruction_sets() # instruction_sets = get_supported_instruction_sets()
# TODO fix this # TODO `get_supported_instruction_sets` has to be reimplemented
instruction_sets = None instruction_sets = None
if instruction_sets is None: if instruction_sets is None:
byte_alignment = 64 byte_alignment = 64
......
...@@ -24,7 +24,7 @@ def to_dot(expr: sp.Expr, graph_style: Optional[Dict[str, Any]] = None, short=Tr ...@@ -24,7 +24,7 @@ def to_dot(expr: sp.Expr, graph_style: Optional[Dict[str, Any]] = None, short=Tr
from sympy.printing.dot import dotprint from sympy.printing.dot import dotprint
return graphviz.Source(dotprint(expr, graph_attr=graph_style)) return graphviz.Source(dotprint(expr, graph_attr=graph_style))
else: else:
# TODO nbackend # TODO Implement dot / graphviz exporter for new backend AST
raise NotImplementedError("Printing of AST nodes for the new backend is not implemented yet") raise NotImplementedError("Printing of AST nodes for the new backend is not implemented yet")
......
...@@ -78,8 +78,6 @@ class modulo_floor(sp.Function): ...@@ -78,8 +78,6 @@ class modulo_floor(sp.Function):
8 8
>>> modulo_floor(12, 4) >>> modulo_floor(12, 4)
12 12
>>> from pystencils import TypedSymbol
>>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
""" """
nargs = 2 nargs = 2
is_integer = True is_integer = True
...@@ -109,8 +107,6 @@ class modulo_ceil(sp.Function): ...@@ -109,8 +107,6 @@ class modulo_ceil(sp.Function):
12 12
>>> modulo_ceil(12, 4) >>> modulo_ceil(12, 4)
12 12
>>> from pystencils import TypedSymbol
>>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
""" """
nargs = 2 nargs = 2
is_integer = True is_integer = True
...@@ -138,8 +134,6 @@ class div_ceil(sp.Function): ...@@ -138,8 +134,6 @@ class div_ceil(sp.Function):
3 3
>>> div_ceil(8, 4) >>> div_ceil(8, 4)
2 2
>>> from pystencils import TypedSymbol
>>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
""" """
nargs = 2 nargs = 2
is_integer = True is_integer = True
...@@ -167,8 +161,6 @@ class div_floor(sp.Function): ...@@ -167,8 +161,6 @@ class div_floor(sp.Function):
2 2
>>> div_floor(8, 4) >>> div_floor(8, 4)
2 2
>>> from pystencils import TypedSymbol
>>> a, b = TypedSymbol("a", "int64"), TypedSymbol("b", "int32")
""" """
nargs = 2 nargs = 2
is_integer = True is_integer = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment