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
Support left-side np.number elemwise operations. #67
Conversation
Hello, the correct way to fix this would be to modify |
Hi, @hameerabbasi
Another option would be to have a special treatment for the |
Hey! I came up with a long-term solution to this, hope it will be of use.
If you check this in, maybe @mrocklin can review it. Edit: You need to import Edit 2: Edited to account for unit test failure. |
@fujiisoup I've edited the elemwise to account for the unit test failure. |
Cool!! I added more tests for left-side operations. |
Would you be kind enough to rebase this on |
# Conflicts: # sparse/tests/test_core.py
Just waiting on either of @nils-werner or @mrocklin to review these changes... Since I was involved in adding code, I shouldn't be the one to review it. :-) |
Thank you for the fix @fujiisoup . I'm sorry I wasn't around to review (I'm in conference prep mode). Thank you for handling this @hameerabbasi . |
Fixes #66.
This adds a workaround when the np.number multiplication from left-side.