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

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

  • 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

Dependencies

C: "kfft-mpi.h"