-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Improve error message for non-broadcasted addition and subtraction #3558
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3558 +/- ##
=======================================
Coverage 98.37% 98.38%
=======================================
Files 37 37
Lines 5610 5624 +14
=======================================
+ Hits 5519 5533 +14
Misses 91 91
☔ View full report in Codecov by Sentry. |
Looks much more general. I wonder about the related case that also prompted this, #3553, that it might not be obvious that |
I think in retrospect that supporting |
We can restrict the error message to square matrices. I think it's still nice to include it. It shows why it's ambiguous to add a scalar and a matrix because both would be reasonable interpretations |
How's this |
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.
I like it
Closes #3554
Follow-up to #3557
cc @jd-foster thoughts on this more general error?