-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Addition of UniformScaling with scalar breaks associativity #341
Comments
So after all, automatic broadcasting of |
Wouldn't defining |
I don't think so. Wouldn't it be |
Yeah, ok, so I guess that |
I don't have access to julia atm, but since
to give the same result as
and thus give rise to the same problems. So now that you mention If we had gone with requiring I think it was clear when we let But I don't think that |
I think this issue needs to be revisited when I propose removing the deprecation and restoring the original behaviour of |
Just to complete the reference cycle the un-deprecation was done in JuliaLang/julia#23923. |
Currently, addition of a
UniformScaling
and a scalar results in a scalar:But this breaks associativity:
If
I+1
had produced2I
instead, the last result had been[2 0; 0 2]
, so it is not how addition ofUniformScaling
and scalars is defined that is the problem, but simply the fact that it is defined at all.I suggest to deprecate and then remove addition of
UniformScaling
and scalars.The text was updated successfully, but these errors were encountered: