kml_fft(f)_mpi_forward_c2c
Execute the created FFT plan in the forward direction. The forward and backward operations can reuse the same plan.
Interface Definition
C interface:
void kml_fft_mpi_forward_c2c(const kml_fft_plan p, kml_fft_complex *in, kml_fft_complex *out, int scale);
void kml_fftf_mpi_forward_c2c(const kml_fftf_plan p, kml_fftf_complex *in, kml_fftf_complex *out, int scale);
Parameters
Parameter |
Data Type |
Description |
Input/Output |
|---|---|---|---|
p |
|
FFT plan obtained by calling the plan function. |
Input |
in |
|
Inputs the data to be transformed. |
Input |
out |
|
Outputs the data generated using FFT. |
Output |
scale |
int |
Whether to scale the output result. If scale is set to 1, the output result is scaled. If scale is set to 0, the output result is not processed. |
Input |
Dependencies
C: "kfft-mpi.h"
Examples
Parent topic: FFT Execution Functions