-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inconsistent zero-dimensional array operations #30825
Comments
I think there is consistent behaviour because rhs always treats 0-dim as scalar. The difference is the first 2 are |
I mean inconsistency wrt arrays of higher dimension. I was expecting to need to explicitly use |
Yeah, this was an intentional design choice specifically for broadcasting, arising from the fact that See also #28866. |
Thanks for the explanations. I'll close this. |
As commented by Andreas Peter on Slack, this makes the following behavior inconsistent
The first does not trigger the broadcast machinery due to a I think we should keep this open. |
Zero dimensional arrays get converted to scalar on some operations. Is this intended behavior? If yes, it seems undocumented* (and no so consistent IMHO)...
[*] I've found some discussion about zero-dim arrays in
faq.md
, but no reference to this.The text was updated successfully, but these errors were encountered: