Skip to content
Snippets Groups Projects
Commit ae69d3d3 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'small-fixes' into 'master'

Small fixes

See merge request !69
parents f9beddc6 9d258f76
No related merge requests found
...@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol): ...@@ -236,6 +236,14 @@ class TypedSymbol(sp.Symbol):
def __getnewargs__(self): def __getnewargs__(self):
return self.name, self.dtype return self.name, self.dtype
@property
def canonical(self):
return self
@property
def reversed(self):
return self
def create_type(specification): def create_type(specification):
"""Creates a subclass of Type according to a string or an object of subclass Type. """Creates a subclass of Type according to a string or an object of subclass Type.
......
...@@ -111,6 +111,7 @@ class AssignmentCollection: ...@@ -111,6 +111,7 @@ class AssignmentCollection:
"Not in SSA form - same symbol assigned multiple times" "Not in SSA form - same symbol assigned multiple times"
return bound_symbols_set return bound_symbols_set
@property
def free_fields(self): def free_fields(self):
"""All fields accessed in the assignment collection, which do not occur as left hand sides in any assignment.""" """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')} return {s.field for s in self.free_symbols if hasattr(s, 'field')}
......
...@@ -46,6 +46,7 @@ def test_inplace_update(): ...@@ -46,6 +46,7 @@ def test_inplace_update():
kernel(f=arr) kernel(f=arr)
np.testing.assert_equal(arr, 2) np.testing.assert_equal(arr, 2)
def test_vectorization_fixed_size(): def test_vectorization_fixed_size():
configurations = [] configurations = []
# Fixed size - multiple of four # Fixed size - multiple of four
......
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