-
-
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
make fftshift and ifftshift take iterables as dimension arguments #20461
Conversation
test/dsp.jl
Outdated
@test fftshift([1 2 3]) == [3 1 2] | ||
@test fftshift([1, 2, 3]) == [3, 1, 2] | ||
@test fftshift([1 2 3; 4 5 6]) == [6 4 5; 3 1 2] | ||
|
||
@test fftshift([1 2 3; 4 5 6], 1) == [4 5 6; 1 2 3] |
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.
what's with the 
?
test/dsp.jl
Outdated
@test ifftshift([1 2 3; 4 5 6], 1) == [4 5 6; 1 2 3] | ||
@test ifftshift([1 2 3; 4 5 6], ()) == [1 2 3; 4 5 6] | ||
@test ifftshift([1 2 3; 4 5 6], (1,2)) == [5 6 4; 2 3 1] | ||
@test ifftshift([1 2 3; 4 5 6], 1:2) == [5 6 4; 2 3 1] |
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.
3 more of them here
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 only found one. But as Travis seems to be faster than my machine...
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.
lines 45 and 46 too
CI passes – @stevengj, please have a quick look at this again and merge at will. |
reincarnation of #16229