CUDAFourier

CUDAFourier[list]
finds the discrete Fourier transform of a list of complex numbers.

CUDAFourier[mem]
finds the discrete Fourier transform of a CUDAMemory.

DetailsDetails

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • works on one-, two-, and three-dimensional lists.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

First, load the CUDALink application:

In[1]:=
Click for copyable input

This generates a random list of reals:

In[2]:=
Click for copyable input

This computes the one-dimensional Fourier transform using CUDA:

In[3]:=
Click for copyable input
Out[3]=

The result agrees with Mathematica:

In[4]:=
Click for copyable input
Out[4]=

works on two-dimensional datasets. Here, a dataset is generated:

In[1]:=
Click for copyable input

Find the logarithmic power spectrum:

In[2]:=
Click for copyable input
Out[2]=

can be used on multidimensional datasets. This gets the data from an image:

In[1]:=
Click for copyable input

This performs the Fourier operation:

In[2]:=
Click for copyable input

This shows the absolute value of the result:

In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »