Compile Fourier
- To: mathgroup at smc.vnet.net
- Subject: [mg64863] Compile Fourier
- From: Alberto Verga <Alberto.Verga at laposte.net>
- Date: Mon, 6 Mar 2006 05:01:09 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
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