MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Compile Fourier


The following piece of code gives an error message 'Compiled expression 
should be a rank 1 tensor of machine-size complex numbers'

    Compile[{{m, _Real, 2}}, Fourier[m]][Table[N[i - j], {i, 4}, {j, 4}]]

Does this mean that Fourier[] cannot be compiled with rank 2 arrays?
My goal is to write a pseudospectral code to solve 2D PDE: compiling the 
time loop seems unavoidable if one wants reasonable performance.

Thanks.

Alberto Verga.
Alberto.Verga at irphe.univ-mrs.fr





  • Prev by Date: Re: MatrixForm to JPG
  • Next by Date: Re: Extract values and multilpicities from list
  • Previous by thread: Re: please help Math-latex
  • Next by thread: Re: Compile Fourier