Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Compile Fourier

  • To: mathgroup at
  • Subject: [mg64863] Compile Fourier
  • From: Alberto Verga <Alberto.Verga at>
  • Date: Mon, 6 Mar 2006 05:01:09 -0500 (EST)
  • Sender: owner-wri-mathgroup at

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.


Alberto Verga.
Alberto.Verga at

  • 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