Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This
2*pi
change is definitely incorrect - the docs refer specifically to comparingdiscont
topi
and2*pi
, but after this change the function does not mention pi at all.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.
Yes, absolutely true, the meaning of
discont
was misused here. But the logic is correct. I will correct this. I would propose a name like ´interval_sizesince
min_valand
max_val` from #14877 don't make sense at all. It only corrects differences, so it will do the same correction foras for
. Only the difference
max_val - min_val
matters.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.
I don't agree with that - they makes sense to me, and should satisfy
unwrap(arr, min=-a, max=a) + b== unwrap(arr + b, min=-a + b, max=a + b)