此为 Mathematica 8 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

CUDAFourier

CUDAFourier[list]
finds the discrete Fourier transform of a list of complex numbers.
CUDAFourier[mem]
finds the discrete Fourier transform of a CUDAMemory.
  • The CUDALink application must be loaded using Needs.
  • works on one-, two-, and three-dimensional lists.
First, load the CUDALink application:
This generates a random list of reals:
This computes the one-dimensional Fourier transform using CUDA:
The result agrees with Mathematica:
works on two-dimensional datasets. Here, a dataset is generated:
Find the logarithmic power spectrum:
can be used on multidimensional datasets. This gets the data from an image:
This performs the Fourier operation:
This shows the absolute value of the result:
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]=
Find the Fourier transform of the rule 30 cellular automaton pattern:
Logarithmic power spectrum: