-
Notifications
You must be signed in to change notification settings - Fork 8
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
ENH: create_diagonal
: support broadcasting
#137
Conversation
98da195
to
de8e38e
Compare
I'm not entirely sure what I should do about the numpy dependency. Do I re-implement Also, I'm getting a strange error when trying to run the tests about a bad device. |
de8e38e
to
1e0b55d
Compare
create_diagonal
: support broadcasting
yes, we will want to remove the NumPy dependency. I don't know how easy it is to make
|
5be6c57
to
9d28bf5
Compare
Ready for your review 😄 |
538e551
to
04b970b
Compare
@mdhaber has |
What do you mean? I just need it for this |
I'm just wondering whether this is an instance of a problem that has appeared elsewhere |
Whenever I need |
04b970b
to
0bbe9ff
Compare
Sure, I was just asking Matt if anything like this had come up in the context of array-agnostic code yet for him |
Oh sorry! I didn't see the tag. I haven't been able to sleep tonight and I'm just tired. |
no worries! |
Yes, I used it in the decorator that adds batch support in I've thought about having a heuristic in |
Makes sense, thanks! In this case, does the approach of making |
48bae8b
to
cf5874c
Compare
@lucascolley Would you like me to do anything else with this PR? |
I just need to find time to review this. @j-bowhay would you like to take a look? |
cf5874c
to
e303347
Compare
Sounds good. I added a lot more tests. |
9e66607
to
ab821b0
Compare
(I renamed the test functions to make it a bit clearer why we have each test.) |
34b3652
to
61b3711
Compare
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 modulo the one query for @lucascolley
@j-bowhay Thank you for much for you thorough and speedy review. We'll wait on Lucas's decision about the term to use. |
61b3711
to
06f6df3
Compare
looks like there is a merge conflict |
06f6df3
to
0fd29e5
Compare
Should be fixed now |
0fd29e5
to
ea42de8
Compare
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.
thanks for this @NeilGirdhar, LGTM! And thanks for the review @j-bowhay !
I will merge this after putting out a micro release.
Awesome thanks! Just curious, why not merge then release? |
While it is very unlikely that anyone is actually relying on the behaviour before this PR, it's technically a change to an existing API, so I'm (conservatively) following https://jacobtomlinson.dev/effver/. There have been some new features and bug fixes which I would like to be available in a Again, this doesn't really matter in this situation, and it may be that something else I've merged already is more likely to break things—it's more just trying to apply a principled way of doing things. |
thanks again @NeilGirdhar ! |
Fixes #136