Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hönig
pystencils
Commits
1acd3925
Commit
1acd3925
authored
3 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Fix imports
parent
0b7de74d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/notebooks/02_tutorial_basic_kernels.ipynb
+1
-1
1 addition, 1 deletion
doc/notebooks/02_tutorial_basic_kernels.ipynb
pystencils/cpu/vectorization.py
+1
-1
1 addition, 1 deletion
pystencils/cpu/vectorization.py
with
2 additions
and
2 deletions
doc/notebooks/02_tutorial_basic_kernels.ipynb
+
1
−
1
View file @
1acd3925
...
@@ -917,4 +917,4 @@
...
@@ -917,4 +917,4 @@
},
},
"nbformat": 4,
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 2
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pystencils/cpu/vectorization.py
+
1
−
1
View file @
1acd3925
...
@@ -270,7 +270,7 @@ def insert_vector_casts(ast_node, instruction_set, default_float_type='double'):
...
@@ -270,7 +270,7 @@ def insert_vector_casts(ast_node, instruction_set, default_float_type='double'):
new_arg
=
visit_expr
(
expr
.
args
[
0
],
default_type
)
new_arg
=
visit_expr
(
expr
.
args
[
0
],
default_type
)
base_type
=
get_type_of_expression
(
expr
.
args
[
0
]).
base_type
if
type
(
expr
.
args
[
0
])
is
VectorMemoryAccess
\
base_type
=
get_type_of_expression
(
expr
.
args
[
0
]).
base_type
if
type
(
expr
.
args
[
0
])
is
VectorMemoryAccess
\
else
get_type_of_expression
(
expr
.
args
[
0
])
else
get_type_of_expression
(
expr
.
args
[
0
])
pw
=
sp
.
Piecewise
((
-
new_arg
,
new_arg
<
c
ast
_f
unc
(
0
,
base_type
.
numpy_dtype
)),
pw
=
sp
.
Piecewise
((
-
new_arg
,
new_arg
<
C
ast
F
unc
(
0
,
base_type
.
numpy_dtype
)),
(
new_arg
,
True
))
(
new_arg
,
True
))
return
visit_expr
(
pw
,
default_type
)
return
visit_expr
(
pw
,
default_type
)
elif
expr
.
func
in
handled_functions
or
isinstance
(
expr
,
sp
.
Rel
)
or
isinstance
(
expr
,
BooleanFunction
):
elif
expr
.
func
in
handled_functions
or
isinstance
(
expr
,
sp
.
Rel
)
or
isinstance
(
expr
,
BooleanFunction
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment