Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
ae69d3d3
Commit
ae69d3d3
authored
Oct 01, 2019
by
Martin Bauer
Browse files
Merge branch 'small-fixes' into 'master'
Small fixes See merge request
pycodegen/pystencils!69
parents
f9beddc6
9d258f76
Changes
3
Hide whitespace changes
Inline
Side-by-side
pystencils/data_types.py
View file @
ae69d3d3
...
...
@@ -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.
...
...
pystencils/simp/assignment_collection.py
View file @
ae69d3d3
...
...
@@ -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'
)}
...
...
pystencils_tests/test_vectorization.py
View file @
ae69d3d3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment