Rate This Document
Findability
Accuracy
Completeness
Readability

kml_fft(f)_mpi_backward_c2c

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

Interface Definition

C interface:

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

void kml_fftf_mpi_backward_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"