「fftn(API)」の版間の差分

提供: Eospedia
移動: 案内検索
 
行18: 行18:
 
  extern int fftnf (int ndim, const int dims[], float Re[], float Im[],
 
  extern int fftnf (int ndim, const int dims[], float Re[], float Im[],
 
    int isign, double scaling);
 
    int isign, double scaling);
 +
Re, Im: 入出力
  
 
==変数の意味==
 
==変数の意味==
このAPIの変数は以下のような用途で使用されています。
+
これらのAPI内で使用されている変数は以下のような用途で使用されています。
 
  Re[]: 実部の配列
 
  Re[]: 実部の配列
 
  Im[]: 虚部の配列
 
  Im[]: 虚部の配列

2014年5月23日 (金) 00:11時点における最新版

DataManip/mrcImage/src/fftnは、FFT処理のためのAPI です。

定数

構造体

API

使用メモリーを解放

FFT処理で使用しているfftn.c内のメモリーを解放します。

extern void fft_free (void);

FFT処理

double型

extern int fftn (int ndim, const int dims[], double Re[], double Im[],
		 int isign, double scaling);

float型

extern int fftnf (int ndim, const int dims[], float Re[], float Im[],
		  int isign, double scaling);

Re, Im: 入出力

変数の意味

これらのAPI内で使用されている変数は以下のような用途で使用されています。

Re[]:		実部の配列
Im[]:		虚部の配列
nTotal:	全複素数の数(各成分のサイズ(dims[])を全て掛けた値)
nPass:	number of elements involved in this pass of transform
nSpan:	nspan/nPass = number of bytes to increment pointer
		in Re[] and Im[]
isign:	exponent: +1 = forward  -1 = reverse
scaling:	normalizing constant by which the final result is *divided*
	scaling == -1, normalize by total dimension of the transform
	scaling <  -1, normalize by the square-root of the total dimension