-
-
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
circshift!(x, n)
and circshift(x, n)
shift in different directions
#46533
Labels
bug
Indicates an unexpected problem or unintended behavior
Comments
yikes |
fredrikekre
added a commit
that referenced
this issue
Sep 14, 2022
This patch fixes the shifting direction for circshift!(x::AbstractVector, n::Integer), which was opposite the direction of circshift(x, n) and circshift!(y, x, n). In addition, this patch fixes the method to also work correctly with offset arrays. Fixes #46533.
fredrikekre
added a commit
that referenced
this issue
Sep 14, 2022
This patch fixes the shifting direction for circshift!(x::AbstractVector, n::Integer), which was opposite the direction of circshift(x, n) and circshift!(y, x, n). In addition, this patch fixes the method to also work correctly with offset arrays. Fixes #46533.
fredrikekre
added a commit
that referenced
this issue
Sep 27, 2022
This patch fixes the shifting direction for circshift!(x::AbstractVector, n::Integer), which was opposite the direction of circshift(x, n) and circshift!(y, x, n). In addition, this patch fixes the method to also work correctly with offset arrays. Fixes #46533.
fredrikekre
added a commit
that referenced
this issue
Sep 27, 2022
This patch fixes the shifting direction for circshift!(x::AbstractVector, n::Integer), which was opposite the direction of circshift(x, n) and circshift!(y, x, n). In addition, this patch fixes the method to also work correctly with offset arrays. Fixes #46533.
Thanks for taking care of this @fredrikekre. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
circshift!(vec, n)
rotation direction is inconsistent with copyingcircshift(vec, n)
and mutating destinationcircshift!(dest, source, n)
versions. Judging by #46016 it appears that in-placecircshift!(vec, n)
was introduced in1.8
and implemented in #42678The text was updated successfully, but these errors were encountered: