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
Stephan Seitz
pystencils
Commits
649e82b4
Commit
649e82b4
authored
Jan 09, 2019
by
Martin Bauer
Browse files
Typo fixes
parent
f47d9378
Changes
2
Hide whitespace changes
Inline
Side-by-side
data_types.py
View file @
649e82b4
...
...
@@ -25,7 +25,7 @@ class cast_func(sp.Function):
# lhs = bitwise_and(a, cast_func(1, 'int'))
# rhs = cast_func(0, 'int')
# print( sp.Ne(lhs, rhs) ) # would give true if all cast_funcs are booleans
# -> thus a separate class bo
l
lean_cast_func is introduced
# -> thus a separate class bo
o
lean_cast_func is introduced
if
isinstance
(
args
[
0
],
Boolean
):
cls
=
boolean_cast_func
return
sp
.
Function
.
__new__
(
cls
,
*
args
,
**
kwargs
)
...
...
sympy_gmpy_bug_workaround.py
View file @
649e82b4
...
...
@@ -8,7 +8,7 @@ try:
import
mpmath.libmp
# In case the user has imported sympy first, then pystencils
if
mpmath
.
libmp
.
BACKEND
==
'gmpy'
:
warnings
.
warn
(
"You are using the gmpy backend. You might encounter an error 'argument is not an mpz sympy'."
warnings
.
warn
(
"You are using the gmpy backend. You might encounter an error 'argument is not an mpz sympy'.
"
"This is due to a known bug in sympy/gmpy library. "
"To prevent this, import pystencils first then sympy or set the environment variable "
"MPMATH_NOGMPY=1"
)
...
...
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