# \#fftw

**URL:** https://discourse.julialang.org/tag/fftw/19.md?page=3

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 4

---

## [Best strategy for fastest way to extract arrays built from matrix elements and then reassemble after ifft()](https://discourse.julialang.org/t/best-strategy-for-fastest-way-to-extract-arrays-built-from-matrix-elements-and-then-reassemble-after-ifft/46888)

<div class="topic-metadata">

**Author:** [@jleman](https://discourse.julialang.org/u/jleman)\
**Replies:** 0\
**Last updated:** [September 19, 2020, 1:48am UTC](https://discourse.julialang.org/t/best-strategy-for-fastest-way-to-extract-arrays-built-from-matrix-elements-and-then-reassemble-after-ifft/46888 "2020-09-19T01:48:47Z")

</div>

I have a frequency domain data set organized as shown in the attached image (set up as an array of matrices like: \[zeros(40,4000) for \_ in 1:4096\] ) I need to create the time domain data set at right by applying the …

---

## [Fourier transform freezes Julia](https://discourse.julialang.org/t/fourier-transform-freezes-julia/38771)

<div class="topic-metadata">

**Author:** [@Martijn-R](https://discourse.julialang.org/u/Martijn-R)\
**Replies:** 5\
**Last updated:** [July 3, 2020, 12:56pm UTC](https://discourse.julialang.org/t/fourier-transform-freezes-julia/38771 "2020-07-03T12:56:30Z")

</div>

I am processing an audio sample (about 20minutes long) in small parts of several seconds. At the moment my code freezes every now and then. The example below is a bit silly but is a minimal ‘working’ example which oft…

---

## [Truncated basis ApproxFun](https://discourse.julialang.org/t/truncated-basis-approxfun/39495)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 10:57pm UTC](https://discourse.julialang.org/t/truncated-basis-approxfun/39495 "2020-05-14T22:57:13Z")

</div>

Hello, I would like to use ApproxFun.jl for a truncated FFT. Is it possible to create direct and inverse Fourier transforms spanned by a sparse basis? This is what I have in mind: using ApproxFun S = Fourier() n = …

---

## [How to set the length of fft](https://discourse.julialang.org/t/how-to-set-the-length-of-fft/38885)

<div class="topic-metadata">

**Author:** [@Andy.Yang](https://discourse.julialang.org/u/Andy.Yang)\
**Replies:** 26\
**Last updated:** [May 8, 2020, 1:03am UTC](https://discourse.julialang.org/t/how-to-set-the-length-of-fft/38885 "2020-05-08T01:03:35Z")

</div>

Hi, I can’t find how to set the length of FFTW.fft, just like python or matlab. Maybe this’s a naive question, but it troubles me a littele. Thanks for your time.

---

## [FFT(W) does not infer](https://discourse.julialang.org/t/fft-w-does-not-infer/36393)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 11\
**Last updated:** [March 23, 2020, 6:22pm UTC](https://discourse.julialang.org/t/fft-w-does-not-infer/36393 "2020-03-23T18:22:48Z")

</div>

Hello, Is this behavior normal/expected or is it a bug (I just noticed it doesn’t happen for 2 dimensional arrays)? fff()=(u=rand(3,3,4);FFTW.fft(u)) @code\_warntype optimize=:true fff() Variables #self#::Core.Compile…

---

## [Equal size of subplots](https://discourse.julialang.org/t/equal-size-of-subplots/36084)

<div class="topic-metadata">

**Author:** [@saurabh](https://discourse.julialang.org/u/saurabh)\
**Replies:** 1\
**Last updated:** [March 17, 2020, 10:58am UTC](https://discourse.julialang.org/t/equal-size-of-subplots/36084 "2020-03-17T10:58:36Z")

</div>

OS: WIndows 10 Julia Version: 1.3.1 I tried to plot the original image and its 2D Fourier spectrum. Currently, the size of subplots is different. I have tried to change aspect ratio of each plot and also of subplot as …

---

## [IFFT Scaling](https://discourse.julialang.org/t/ifft-scaling/33979)

<div class="topic-metadata">

**Author:** [@jleman](https://discourse.julialang.org/u/jleman)\
**Replies:** 5\
**Last updated:** [January 30, 2020, 9:25pm UTC](https://discourse.julialang.org/t/ifft-scaling/33979 "2020-01-30T21:25:38Z")

</div>

Does anyone know if there is a 1/N or 1/sqrt(N) scaling in the IFFT function of FFTW.jl? I am taking the IFFT of an array of complex numbers sampled from a continuous frequency domain function. The resulting time domai…

---

## [Problems using FFTW- SOLVED](https://discourse.julialang.org/t/problems-using-fftw-solved/33930)

<div class="topic-metadata">

**Author:** [@IgnacioSuarez](https://discourse.julialang.org/u/IgnacioSuarez)\
**Replies:** 10\
**Last updated:** [January 29, 2020, 8:08pm UTC](https://discourse.julialang.org/t/problems-using-fftw-solved/33930 "2020-01-29T20:08:18Z")

</div>

Hi! I am using FFTW in Julia 1.1. I am trying to do the Fourier transform of exp(-0.5\*x^2), whose analytical solution is exactly itself but I obtain a complex array. Does anyone know what I am doing wrong? You can fin…

---

## [Translate images by subpixel amounts](https://discourse.julialang.org/t/translate-images-by-subpixel-amounts/30248)

<div class="topic-metadata">

**Author:** [@johnheyer](https://discourse.julialang.org/u/johnheyer)\
**Replies:** 5\
**Last updated:** [January 20, 2020, 11:11am UTC](https://discourse.julialang.org/t/translate-images-by-subpixel-amounts/30248 "2020-01-20T11:11:21Z")

</div>

Hello, I’m trying to translate an image by arbitrary amounts, and am currently doing translations via JuliaImages and CoordinateTransformation packages as such: t = Translation(y\_shift, x\_shift) img = warp(img, t, indi…

---

## [Performance advice needed](https://discourse.julialang.org/t/performance-advice-needed/33467)

<div class="topic-metadata">

**Author:** [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)\
**Replies:** 17\
**Last updated:** [January 17, 2020, 5:55pm UTC](https://discourse.julialang.org/t/performance-advice-needed/33467 "2020-01-17T17:55:02Z")

</div>

Hi, I am working on a function with calculation that have structure similar to FFT. I’m a bit disappointed, cause I hoped it will be 10x slower than FFTW but benchmarks show its 100x slower. i tried to put @simd and @in…

---

## [FourierAnalysis.jl - a package for the analysis of multivariate time-series in the frequency and time-frequency domain](https://discourse.julialang.org/t/fourieranalysis-jl-a-package-for-the-analysis-of-multivariate-time-series-in-the-frequency-and-time-frequency-domain/29157)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 6\
**Last updated:** [September 26, 2019, 8:10am UTC](https://discourse.julialang.org/t/fourieranalysis-jl-a-package-for-the-analysis-of-multivariate-time-series-in-the-frequency-and-time-frequency-domain/29157 "2019-09-26T08:10:32Z")

</div>

Hello all, I wrote a package for performing the analysis of real multivariate time series both in the frequency domain and in the time-frequency domain, based on DSP.jl, FFTW.jl and AbstractFFTs.jl. In the frequ…

---

## [FFTW Plans for multiple threads](https://discourse.julialang.org/t/fftw-plans-for-multiple-threads/21861)

<div class="topic-metadata">

**Author:** [@M\_Kaj](https://discourse.julialang.org/u/M_Kaj)\
**Replies:** 1\
**Last updated:** [March 14, 2019, 1:13pm UTC](https://discourse.julialang.org/t/fftw-plans-for-multiple-threads/21861 "2019-03-14T13:13:49Z")

</div>

I need to compute many convolutions of arrays with the same length and I want to use multiple threads for that. So i want each thread to compute a convolution with fft’s. As I understand it right now the creating of the…

---

## [\`fft(v)\` fails for subtypes of \`AbstractArray{\<:Complex}\`](https://discourse.julialang.org/t/fft-v-fails-for-subtypes-of-abstractarray-complex/19404)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 2\
**Last updated:** [January 9, 2019, 5:30pm UTC](https://discourse.julialang.org/t/fft-v-fails-for-subtypes-of-abstractarray-complex/19404 "2019-01-09T17:30:36Z")

</div>

Hello, I think this is a bug: struct wrap{T,N} \<: AbstractArray{T,N} v::Array{T,N} end Base.size(w::wrap)=size(w.v) Base.getindex(w::wrap,i)=getindex(w.v,i) Base.setindex!(w::wrap,i,v)=setindex!(w.v,i,v) wwr=wrap(…

---

## [How to use FFTW MPI routines with MPI.jl](https://discourse.julialang.org/t/how-to-use-fftw-mpi-routines-with-mpi-jl/18533)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 7:33pm UTC](https://discourse.julialang.org/t/how-to-use-fftw-mpi-routines-with-mpi-jl/18533 "2018-12-10T19:33:37Z")

</div>

I’d like to use FFTW’s distributed memory routines and I have several doubts on how to achieve this. I guess one should be able to build that on top of MPI.jl and FFTW.jl, right? I’m still stuck in very conceptual doubt…

---

## [Calling FFTW on other processes resulting ProcessExitException()](https://discourse.julialang.org/t/calling-fftw-on-other-processes-resulting-processexitexception/14798)

<div class="topic-metadata">

**Author:** [@shipengcheng1230](https://discourse.julialang.org/u/shipengcheng1230)\
**Replies:** 1\
**Last updated:** [September 11, 2018, 11:06am UTC](https://discourse.julialang.org/t/calling-fftw-on-other-processes-resulting-processexitexception/14798 "2018-09-11T11:06:58Z")

</div>

Hello, I am trying to call planned FFT on other processes, however, unsuccessfully: using Distributed addprocs(4) @everywhere using FFTW @everywhere FFTW.set\_num\_threads(1) x = rand(1024) plan = plan\_rfft(x, flags=FFT…

---

## [Plan FFTs both in julia 0.6.3 and 0.7](https://discourse.julialang.org/t/plan-ffts-both-in-julia-0-6-3-and-0-7/11728)

<div class="topic-metadata">

**Author:** [@navidcy](https://discourse.julialang.org/u/navidcy)\
**Replies:** 2\
**Last updated:** [June 17, 2018, 4:04am UTC](https://discourse.julialang.org/t/plan-ffts-both-in-julia-0-6-3-and-0-7/11728 "2018-06-17T04:04:51Z")

</div>

I’m trying to make my package (FourierFlows.jl) compatible with v0.7.0. I have some trouble planning the fft’s. I can plan the ffts and do in-place ffts in both 0.7.0 and 0.6.3. However, I don’t know how to code it up in…

---

## [ANN: InplaceRealFFT.jl : inplace real-to-complex and complex-to-real FFT](https://discourse.julialang.org/t/ann-inplacerealfft-jl-inplace-real-to-complex-and-complex-to-real-fft/8116)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 25\
**Last updated:** [January 5, 2018, 6:32am UTC](https://discourse.julialang.org/t/ann-inplacerealfft-jl-inplace-real-to-complex-and-complex-to-real-fft/8116 "2018-01-05T06:32:50Z")

</div>

Hello everyone! I’ve created the InplaceRealFFT.jl module to expose FFTW’s inplace real-to-complex (rfft!) and complex-to-real (irfft!) transformations. Currently, Julia only provides inplace version of the transform f…

---

## [\`plan\_fft\` fails when Julia is built with Intel MKL?](https://discourse.julialang.org/t/plan-fft-fails-when-julia-is-built-with-intel-mkl/4284)

<div class="topic-metadata">

**Author:** [@fasiha](https://discourse.julialang.org/u/fasiha)\
**Replies:** 6\
**Last updated:** [October 1, 2017, 12:30am UTC](https://discourse.julialang.org/t/plan-fft-fails-when-julia-is-built-with-intel-mkl/4284 "2017-10-01T00:30:49Z")

</div>

I built Julia 0.5.2 with Intel MKL on macOS (with some effort) and am enjoying some nice speedups in 3D FFTs. However, it appears that plan\_fft doesn’t work with MKL: julia\> Base.libfftw\_name "libmkl\_rt" julia\> x = re…

---

## [Specifying fft in standard fft call](https://discourse.julialang.org/t/specifying-fft-in-standard-fft-call/5023)

<div class="topic-metadata">

**Author:** [@standarddeviant](https://discourse.julialang.org/u/standarddeviant)\
**Replies:** 1\
**Last updated:** [July 22, 2017, 8:02pm UTC](https://discourse.julialang.org/t/specifying-fft-in-standard-fft-call/5023 "2017-07-22T20:02:10Z")

</div>

I feel like I’m missing something. I have a length 1024 vector and want to take the FFT of that vector. I would like to take a length 2048 FFT of that vector. Is the proper solution to zero-pad the vector manually, an…

---

## [Does FFTW keep a system wisdom](https://discourse.julialang.org/t/does-fftw-keep-a-system-wisdom/4048)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 2\
**Last updated:** [June 2, 2017, 4:24am UTC](https://discourse.julialang.org/t/does-fftw-keep-a-system-wisdom/4048 "2017-06-02T04:24:37Z")

</div>

Does a Julia’s FFTW library keeps its own system wisdom? I use fft’s quite often for a given set of array dimensions. I’d like to create optimized plans (using FFTW.EXHAUSTIVE flag). I know how to export and import plan…

---

## [In-place rfft with padded arrays](https://discourse.julialang.org/t/in-place-rfft-with-padded-arrays/3340)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 3\
**Last updated:** [May 5, 2017, 3:20pm UTC](https://discourse.julialang.org/t/in-place-rfft-with-padded-arrays/3340 "2017-05-05T15:20:28Z")

</div>

Hi, It seems Julia does not have direct support for something like rfft! I found this question on StackOverFlow which has been asked some years ago by now. Is it possible now to “easily” perform a in-place rfft with t…

---

## [FFTW Plans and Wisdom](https://discourse.julialang.org/t/fftw-plans-and-wisdom/3053)

<div class="topic-metadata">

**Author:** [@wibble](https://discourse.julialang.org/u/wibble)\
**Replies:** 2\
**Last updated:** [April 5, 2017, 5:10pm UTC](https://discourse.julialang.org/t/fftw-plans-and-wisdom/3053 "2017-04-05T17:10:38Z")

</div>

Hello, Pretty new to Julia, trying to get an FFT/spectrogram code working with the FFTW interface. I’ve used FFTW in C before, and I’m a bit confused as to how this works regarding plans and wisdom. Is there any provi…

---

## [Parallel FFT not that much faster](https://discourse.julialang.org/t/parallel-fft-not-that-much-faster/671)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 10\
**Last updated:** [December 19, 2016, 7:32am UTC](https://discourse.julialang.org/t/parallel-fft-not-that-much-faster/671 "2016-12-19T07:32:55Z")

</div>

I’m trying to do parallel FFT on an 8 core (4 CPUs, 2 hyperthreads / CPU) machine, and I’m basically seeing a little less than 2x speedup going from 1 core to 2, and then none whatsoever between 2 and 8. Is this expected…

---

## [FFT plan can't be sent between processes?](https://discourse.julialang.org/t/fft-plan-cant-be-sent-between-processes/877)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 11\
**Last updated:** [December 12, 2016, 10:14pm UTC](https://discourse.julialang.org/t/fft-plan-cant-be-sent-between-processes/877 "2016-12-12T22:14:13Z")

</div>

I’m not fully sure if this is a bug, something where just the error message ought to be nicer, or whether I’ve done something really bad! The problem arises trying to transfer an FFT plan between processes as you see bel…

[Previous page](https://discourse.julialang.org/tag/fftw/19.md?match_all_tags=true&page=2&tags%5B%5D=fftw)
