-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Use fused types for _take_2d #22917
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
Use fused types for _take_2d #22917
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22917 +/- ##
=======================================
Coverage 92.19% 92.19%
=======================================
Files 169 169
Lines 50831 50831
=======================================
Hits 46864 46864
Misses 3967 3967
Continue to review full report at Codecov.
|
|
||
if take_t is object: | ||
# evaluated at compile-time | ||
result = values.copy() |
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.
empty_like doesn't work?
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.
This is just maintaining the status quo, so I didn't try it the other way.
rebase. I assume you want to merge this, or was this just testing things? |
Done and yes |
thanks! |
Misc cleanup
For some of the cython code I get unexplained test failures when using fused types. Vaguely hoping to narrow down the set of affected functions so as to make a helpful bug report to cython.