Skip to content
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

Use tuples in fftshift, and add copy method #40

Merged
merged 1 commit into from
May 14, 2020

Conversation

mcabbott
Copy link

This was supposed to fix #36. Although in the end @code_warntype fftshift(rand(ComplexF64,64,64)) shows no problems on the latest Julia (although it does print a bit less with this PR) and isn't fixed on Julia 1.0!

It also adds a method for copy(fftfreq(8)), this previously gave an Array, whereas now it behaves like copy(1:8). I think collect(1:8) or Array(1:8) are the ways to make an Array.

@stevengj stevengj merged commit 9372553 into JuliaMath:master May 14, 2020
@mcabbott mcabbott deleted the shift branch May 14, 2020 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type instability in fftshift/ifftshift
2 participants