-
-
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
Add compat annotation for NaN handling in (l|r)mul! #30361
Conversation
This patch also adds tests to check the documented behavior.
I just noticed #29726 has more discussion and it was considered actually a bug fix #29726 (comment) Nevertheless, it's good to have docs and tests. |
stdlib/LinearAlgebra/src/generic.jl
Outdated
modified (unless the type of `b` defines a non-standard behavior). | ||
|
||
!!! compat "Julia 1.1" | ||
Prior to Julia 1.1, how `NaN` entries in `A` were treated was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rephrase to something like Prior to Julia 1.1,
NaNentries in
A were treated inconsistently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's much smoother. I changed the docstring. I also mention Inf
since that's also changed.
(cherry picked from commit 797ddbb)
As discussed in JuliaLang/LinearAlgebra.jl#560, the behavior of
lmul!
andrmul!
was changed between 1.0 and 1.1. I think issue JuliaLang/LinearAlgebra.jl#560 should be treated as an API documentation bug (and I think it would be nice if similar issues are closed by PRs addressing the issue). This PR adds docstring to elaborate the API of those functions and adds compat annotation for the incompatible change.