Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
856b8226
Commit
856b8226
authored
Jul 26, 2017
by
Martin Bauer
Browse files
sympy 1.1 compatibility
parent
bee3bfdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
backends/cbackend.py
View file @
856b8226
import
sympy
as
sp
from
sympy.utilities.codegen
import
CCodePrinter
try
:
from
sympy.utilities.codegen
import
CCodePrinter
except
ImportError
:
from
sympy.printing.ccode
import
C99CodePrinter
as
CCodePrinter
from
pystencils.astnodes
import
Node
from
pystencils.types
import
createType
,
PointerType
...
...
transformations.py
View file @
856b8226
...
...
@@ -477,7 +477,7 @@ def typeAllEquations(eqs, typeForSymbol):
typedEquations
=
[]
for
eq
in
eqs
:
if
isinstance
(
eq
,
sp
.
Eq
):
if
isinstance
(
eq
,
sp
.
Eq
)
or
isinstance
(
eq
,
ast
.
SympyAssignment
)
:
newLhs
=
processLhs
(
eq
.
lhs
)
newRhs
=
processRhs
(
eq
.
rhs
)
typedEquations
.
append
(
ast
.
SympyAssignment
(
newLhs
,
newRhs
))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment