-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support matrix multiplication operator (@) #2287
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
Conversation
@@ -182,6 +182,22 @@ main:3: error: Unsupported operand types for * ("A" and "C") | |||
main:4: error: Incompatible types in assignment (expression has type "C", variable has type "A") | |||
main:5: error: Unsupported left operand type for * ("B") | |||
|
|||
[case testMatMul] | |||
|
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.
Please go easy on the blank lines in unit tests. The files are long enough.
@@ -182,6 +182,22 @@ main:3: error: Unsupported operand types for * ("A" and "C") | |||
main:4: error: Incompatible types in assignment (expression has type "C", variable has type "A") | |||
main:5: error: Unsupported left operand type for * ("B") | |||
|
|||
[case testMatMul] |
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.
Don't we need separate tests for --fast-parser?
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 don't know. Do we? It already supports the operator. Looks like this work is delegated to typed_ast.
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 have added a test to verify that the fast parser recognizes the operator. As far as I understand there's nothing more to test there, not more than there is for any other operator.
Thanks! |
Fix #705
Added old parser support too.