I am baffled by this error : "FFTW plan applied to wrong-size array". i am
using the plan fft in the following way:
testField = rand(512, 512) .+ rand(512, 512)*im
fastFFT = plan_fft(testField, [1:2], FFTW.PATIENT)
the problem is when I apply fastFFT to an array A it does the fft and do
not complain. but when I apply on the array B it throws the error. I am
including samples of Array A and B below. What am I doing wrong? I use the
following syntax
map(fastFFT, [(A[i]) for i=1:length(z)])
However it works fine with fastFFT(B[20]). I thought it might be a
comprehension problem. But writing the following also throws the error
for i = 20:30 fastFFT(B[i]) end
it works fine if I manually try to calculate these
Array A:
121-element Array{Any,1}:
512x512 Array{Complex{Float64},2}:
3.24559e-6-2.25562e-6im … 1.54766e-6-1.3629e-6im
1.54766e-6-1.3629e-6im 7.24376e-7-7.51398e-7im
1.56577e-6+1.8426e-6im 9.72588e-7+9.52785e-7im
2.07686e-6+2.32064e-6im 1.25155e-6+1.13035e-6im
-1.4347e-7+6.98249e-7im -6.53867e-8+3.98152e-7im
-3.15307e-6-2.46052e-8im … -1.64181e-6+1.81952e-7im
-3.59808e-6-3.33383e-7im -1.83249e-6-5.5261e-8im
-1.91914e-6-1.68204e-6im -1.06283e-6-9.01725e-7im
-5.22509e-7-3.00279e-6im -4.00595e-7-1.56974e-6im
-6.62294e-8-2.31215e-6im -6.29082e-8-1.1865e-6im
⋮ ⋱
Array B
121-element Array{Any,1}:
512x512 Array{Complex{Float64},2}:
-1.69584e-6+1.17858e-6im … -8.08663e-7+7.12124e-7im
-1.26101e-6+8.7638e-7im -6.01315e-7+5.2953e-7im
-8.26186e-7+5.74184e-7im -3.93968e-7+3.46936e-7im
-3.9136e-7+2.71988e-7im -1.8662e-7+1.64342e-7im
-2.76729e-6+1.92322e-6im -1.31959e-6+1.16206e-6im
-2.33247e-6+1.62102e-6im … -1.11224e-6+9.79461e-7im
-1.89764e-6+1.31883e-6im -9.04893e-7+7.96867e-7im
-1.46282e-6+1.01663e-6im -6.97546e-7+6.14272e-7im
-1.02799e-6+7.14434e-7im -4.90198e-7+4.31678e-7im
-5.93163e-7+4.12238e-7im -2.82851e-7+2.49084e-7im
⋮ ⋱