-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiler: Make code gen of elementary funcs dtype-aware #2349
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2349 +/- ##
=======================================
Coverage 79.44% 79.44%
=======================================
Files 232 232
Lines 43587 43607 +20
Branches 8070 8072 +2
=======================================
+ Hits 34629 34645 +16
- Misses 8202 8206 +4
Partials 756 756 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Approved
@@ -255,6 +274,11 @@ def _print_Fallback(self, expr): | |||
_print_Basic = _print_Fallback | |||
|
|||
|
|||
# Lifted from SymPy so that we go through our own `_print_math_func` | |||
for k in ('exp log sin cos tan ceiling floor').split(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it ceil not ceiling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow it gets remapped internally...
https://github.com/sympy/sympy/blob/master/sympy/printing/c.py#L734
c485da5
to
3c8edea
Compare
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
cos(np.float32)
now generatescosf(...)