-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#4383 this rule ignores singleton dimensions, and allows the last dimension of one side to match all trailing dimensions of the other.
- Loading branch information
1 parent
def4b95
commit d62f455
Showing
2 changed files
with
73 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As far as I can tell, to get here both
lxi
andlii
have to be bigger than 1. So it's not obvious to me why this can'tthrow
immediately---oncematch
gets set tofalse
, there's no way for it to get set totrue
, and AFAICT all exit paths from this function result in an error ifmatch
isn't true. By that logic,match
isn't even necessary.Assuming I'm wrong in this analysis 😄, a comment might be in order.