Package ffx.numerics.fft
Class Real3D
java.lang.Object
ffx.numerics.fft.Real3D
Compute the 3D FFT of real, double precision input of arbitrary dimensions.
- Since:
- 1.0
- Author:
- Michal J. Schnieders
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvolution(double[] input) convolutionvoidfft(double[] input) Compute the 3D FFT.voidifft(double[] input) Compute the inverse 3D FFT.static intiReal3D(int i, int j, int k, int nX, int nY) Determine the index of the real number in the 1D array from the X, Y and Z indices.voidsetRecip(double[] recip) Setter for the fieldrecip.
-
Constructor Details
-
Real3D
public Real3D(int nX, int nY, int nZ) Initialize the 3D FFT for complex 3D matrix.- Parameters:
nX- X-dimension.nY- Y-dimension.nZ- Z-dimension.
-
-
Method Details
-
iReal3D
public static int iReal3D(int i, int j, int k, int nX, int nY) Determine the index of the real number in the 1D array from the X, Y and Z indices.- Parameters:
i- the index along the X-axis.j- the index along the Y-axis.k- the index along the Z-axis.nX- the number of points along the X-axis.nY- the number of points along the Y-axis.- Returns:
- the index of the real number in the 1D array.
-
convolution
public void convolution(double[] input) convolution- Parameters:
input- an array of double.
-
fft
public void fft(double[] input) Compute the 3D FFT.- Parameters:
input- The input array must be of size (nX + 2) * nY * nZ.
-
ifft
public void ifft(double[] input) Compute the inverse 3D FFT.- Parameters:
input- The input array must be of size (nX + 2) * nY * nZ.
-
setRecip
public void setRecip(double[] recip) Setter for the fieldrecip.- Parameters:
recip- an array of double.
-