我要评分
获取效率
正确性
完整性
易理解

kml_fft(f)_mpi_execute_dft_ext

Execute the created FFT plan. The forward and backward operations can reuse the same plan.

Interface Definition

C interface:

void kml_fft_mpi_execute_dft_ext(const kml_fft_plan p, kml_fft_complex *in, kml_fft_complex *out, int scale, int sign_flag);

void kml_fftf_mpi_execute_dft_ext(const kml_fftf_plan p, kml_fftf_complex *in, kml_fftf_complex *out, int scale, int sign_flag);

Parameters

Parameter

Data Type

Description

Input/Output

p

  • Double precision: const kml_fft_plan
  • Single precision: const kml_fftf_plan

FFT plan obtained by calling the plan function.

Input

in

  • Double precision: kml_fft_complex*
  • Single precision: kml_fftf_complex*

Inputs the data to be transformed.

Input

out

  • Double precision: kml_fft_complex*
  • Single precision: kml_fftf_complex*

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

sign_flag

int

3DFFT computation direction, KML_FFT_FORWARD/KML_FFT_BACKWARD.

Input

Dependencies

C: "kfft-mpi.h"

Examples

See C2C Transforms.