-
-
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
Broadcasting \sqrt (√) (and similar infix ops?) #23814
Comments
See #20249. The following works:
(Since it is an operator, you add the dot before the operator, just like |
I already mentioned that in the issue description, but wouldn't it make sense to also support |
As binary operators |
I think
which you can't express in operator syntax, but can express in call syntax. |
Making |
Why? |
A vague memory from #20540. But having briefly reviewed #20540 I believe you are correct, i.e. making |
Hm, operators that are simultaneously unary and binary might add a twist though... |
No, I don't think simultaneous/unary binary ops should matter. If you make
|
From https://discourse.julialang.org/t/using-with-a-vector/6025.
results in
sqrt.(x)
works fine, but√.(x)
results insince √ is an infix op (so
.√(x)
should be used, or(√).(x)
).Could
√.(x)
be made to work?The text was updated successfully, but these errors were encountered: