-
-
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
&
does not broadcast, and there is no .&
(similar problem for "or")
#6915
Comments
As long as |
@ivarne True that. Forget all about |
On the mailing list, it @toivoh also suggested that bitwise operations ( |
I think it is correct that |
We could make the broadcasting operations first check if broadcasting is |
Working on #18977 I implemented broadcasting |
@davidavdav, every operator will get a broadcasted dot variant in #17623, so I'd prefer that you didn't add more "manual" ones now. (#17623 is on hold for a little while now while the |
Sure, no problem, a generic solution is of course better. |
#17623 gives use |
Given two logical arrays with different dimensions, there seems to be no straightforward way to broadcast
and
:See also discussion on the users list. It turns out
a .* b
achieves the desired effect. For consistency, I suggest adding a dotted version.&
that works just like.*
. The latter works, but it's a counterintuitive way to express the intention of broadcasting and, and it relies on the fact that booleans happen to be represented by 0 and 1. There also is no corresponding way to express "broadcasting or" without resorting to tricks relying on the underlying representation, so I'd like to suggest adding.|
as well. (And/or adding.&&
and.||
, if that makes more sense.)The text was updated successfully, but these errors were encountered: