Commit ae69d3d3 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'small-fixes' into 'master'

Small fixes

See merge request pycodegen/pystencils!69
parents f9beddc6 9d258f76
......@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol):
def __getnewargs__(self):
return self.name, self.dtype
@property
def canonical(self):
return self
@property
def reversed(self):
return self
def create_type(specification):
"""Creates a subclass of Type according to a string or an object of subclass Type.
......
......@@ -111,6 +111,7 @@ class AssignmentCollection:
"Not in SSA form - same symbol assigned multiple times"
return bound_symbols_set
@property
def free_fields(self):
"""All fields accessed in the assignment collection, which do not occur as left hand sides in any assignment."""
return {s.field for s in self.free_symbols if hasattr(s, 'field')}
......
......@@ -46,6 +46,7 @@ def test_inplace_update():
kernel(f=arr)
np.testing.assert_equal(arr, 2)
def test_vectorization_fixed_size():
configurations = []
# Fixed size - multiple of four
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment