-
-
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
Allow setindex! in zero part of Triangular matrices... #13587
Conversation
d4a4f81
to
1f50924
Compare
as long as the value is zero
69a406a
to
566acb1
Compare
Allow setindex! in zero part of Triangular matrices...
This should be safe to backport. |
Only if all libraries that rely on this behavior explicitly mark their dependency on the first release version of Julia that has this change backported. |
Hunh? Yes, this changes the tested interface (error types change, an error becomes a no-op in some situations), but I really would not consider it to be breaking. |
No, but it could be considered a new feature. User code that formerly errored would now work - so if a package starts relying on the new behavior, it needs to very clearly specify its dependence on the first version of Julia where it started working, otherwise the package would suddenly break upon upgrade for any users who stay on 0.4.0. |
Gotcha. I was thinking of this more as a bug fix than a feature, but I can see your point. Your call. |
This is a little of both. I guess the point is more general - even for obvious bug fixes, relying on fixes in backport releases should come with stricter dependency versioning discipline in packages to avoid causing issues for users. At least we now support testing against specific versions in Travis, so packages can test specifically against 0.4.0 (potentially in addition to 0.4-latest) now that it's out. |
as long as the value is zero. The error message is similar to that of setindex for Diagonal matrices. And similarly for setting the diagonal of UnitTriangular types to one.
Prompted by this SO question. We may want to also think about what a similar triangular matrix is… but that's a bigger question.