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
Model registry
Operate
Environments
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
pycodegen
pystencils
Commits
3daaa5e5
Commit
3daaa5e5
authored
4 months ago
by
Richard Angersbach
Browse files
Options
Downloads
Patches
Plain Diff
Fix typecheck
parent
96b5cbf2
No related branches found
No related tags found
1 merge request
!438
Reduction Support
Pipeline
#72914
failed
4 months ago
Stage: Code Quality
Stage: Unit Tests
Stage: legacy_test
Stage: docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pystencils/sympyextensions/__init__.py
+2
-0
2 additions, 0 deletions
src/pystencils/sympyextensions/__init__.py
src/pystencils/sympyextensions/binop_mapping.py
+3
-3
3 additions, 3 deletions
src/pystencils/sympyextensions/binop_mapping.py
with
5 additions
and
3 deletions
src/pystencils/sympyextensions/__init__.py
+
2
−
0
View file @
3daaa5e5
...
@@ -2,6 +2,7 @@ from .astnodes import ConditionalFieldAccess
...
@@ -2,6 +2,7 @@ from .astnodes import ConditionalFieldAccess
from
.typed_sympy
import
TypedSymbol
,
CastFunc
from
.typed_sympy
import
TypedSymbol
,
CastFunc
from
.pointers
import
mem_acc
from
.pointers
import
mem_acc
from
.reduction
import
reduced_assign
from
.reduction
import
reduced_assign
from
.binop_mapping
import
binop_str_to_expr
from
.math
import
(
from
.math
import
(
prod
,
prod
,
...
@@ -35,6 +36,7 @@ from .math import (
...
@@ -35,6 +36,7 @@ from .math import (
__all__
=
[
__all__
=
[
"
ConditionalFieldAccess
"
,
"
ConditionalFieldAccess
"
,
"
reduced_assign
"
,
"
reduced_assign
"
,
"
binop_str_to_expr
"
,
"
TypedSymbol
"
,
"
TypedSymbol
"
,
"
CastFunc
"
,
"
CastFunc
"
,
"
mem_acc
"
,
"
mem_acc
"
,
...
...
This diff is collapsed.
Click to expand it.
src/pystencils/sympyextensions/binop_mapping.py
+
3
−
3
View file @
3daaa5e5
from
operator
import
truediv
,
mul
,
sub
,
add
from
operator
import
truediv
,
mul
,
sub
,
add
from
src.pystencils
.backend.ast.expressions
import
PsCall
,
PsExpression
from
.
.backend.ast.expressions
import
PsCall
,
PsExpression
from
src.pystencils
.backend.exceptions
import
FreezeError
from
.
.backend.exceptions
import
FreezeError
from
src.pystencils
.backend.functions
import
MathFunctions
,
PsMathFunction
from
.
.backend.functions
import
MathFunctions
,
PsMathFunction
_available_operator_interface
:
set
[
str
]
=
{
'
+
'
,
'
-
'
,
'
*
'
,
'
/
'
}
_available_operator_interface
:
set
[
str
]
=
{
'
+
'
,
'
-
'
,
'
*
'
,
'
/
'
}
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
4e688b86
·
1 month ago
mentioned in commit
4e688b86
mentioned in commit 4e688b867339c90a6fba3ad12c383d1e59211ed9
Toggle commit list
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