Also, ideally you should change the code so that the array that's
constructed in the first place has Complex{Float64} element type. Otherwise
you're not doing yourself any favors in terms of performance or memory
usage.On Wed, Dec 18, 2013 at 5:40 PM, Stefan Karpinski <[email protected]>wrote: > That inexact error happens when something can't be faithfully converted to > the desired type, indicating that you may have something too big in your > array perhaps? > > > On Wed, Dec 18, 2013 at 5:12 PM, Weichi Ding <[email protected]> wrote: > >> Hi, >> >> It seems irfft function doesn't take an array of "Array{Any,1}" as input >> even each element of the array is a complex number. >> >> To run irfft(S, 20) ## typeof(S) --> Array{Any,1} >> >> I got an error message below >> >> ERROR: no method brfft(Array{Any,1},Int64,Range1{Int64}) >> in irfft at fftw.jl:667 >> >> How to change the type of S to {Complex{Float64},1}? >> I tried S=complex(S), it gives an error "ERROR: InexactError() >> in setindex! at array.jl:412 >> >> Thanks >> >> >
