xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 成员变量 | 包函数
fftw.fftwComplex类 参考

Public 成员函数

静态 Public 成员函数

成员变量

包函数

详细描述

在文件 fftw.xcs26 行定义.

构造及析构函数说明

◆ fftwComplex() [1/2]

fftwComplex ( int  size)

在文件 fftw.xcs30 行定义.

30 {
31 s = size;
32 native = alloc_complex(size);
33 }

被这些函数引用 fftw.fftwComplex.from_complex().

◆ fftwComplex() [2/2]

fftwComplex ( int  width,
int  height 
)

在文件 fftw.xcs43 行定义.

43 {
44 w = width;
45 h = height ;
46 native = alloc_complex(w * h);
47 }

引用了 fftw.fftwComplex.h , 以及 fftw.fftwComplex.w.

成员函数说明

◆ extract()

double [][] extract ( )

在文件 fftw.xcs50 行定义.

50 {
51 double[][] fo = nilptr;
52 int len = 0;
53
54 if (s != 0){
55 len = s;
56 }else{
57 len = w * h;
58 }
59
60 fo = new double[2][len];
61 extract_complex_double2(native, 0, len, 0, fo[0], fo[1]);
62 return fo;
63 }

引用了 fftw.fftwComplex.h , 以及 fftw.fftwComplex.w.

◆ fill() [1/2]

void fill ( double []  rd,
double []  id 
)

在文件 fftw.xcs66 行定义.

66 {
67 int len = 0;
68
69 if (s != 0){
70 len = s;
71 }else{
72 len = w * h;
73 }
74 if (id != nilptr){
75 fill_complex_double2(native, 0, len, 0, rd, id);
76 }else{
77 fill_complex_double(native, 0, len, 0, rd);
78 }
79 }

引用了 fftw.fftwComplex.h , 以及 fftw.fftwComplex.w.

◆ fill() [2/2]

void fill ( double  rd[][],
double  id[][] 
)

在文件 fftw.xcs82 行定义.

82 {
83 int row = rd[0].length;
84
85 if (id != nilptr){
86 for (int i = 0; i < rd.length; i++){
87 fill_complex_double2(native, i*row, s, 0, rd[i], id[i]);
88 }
89 }else{
90 for (int i = 0; i < rd.length; i++){
91 fill_complex_double(native, i*row, s, 0, rd[i]);
92 }
93 }
94 }

◆ finalize()

void finalize ( )
package

在文件 fftw.xcs96 行定义.

96 {
97 if (native != 0){
98 free_complex(native);
99 }
100 }

◆ from_complex()

static fftwComplex from_complex ( double  complex[][])
static

在文件 fftw.xcs36 行定义.

36 {
37 fftwComplex dat = new fftwComplex(complex[0].length);
38 dat.fill(complex[0], complex[1]);
39 return dat;
40 }
fftwComplex(int size)
Definition fftw.xcs:30

引用了 fftw.fftwComplex.fftwComplex().

结构体成员变量说明

◆ h

int h = 0

在文件 fftw.xcs28 行定义.

被这些函数引用 fftw.fftwComplex.extract(), fftw.fftwComplex.fftwComplex() , 以及 fftw.fftwComplex.fill().

◆ native

long native = 0

在文件 fftw.xcs27 行定义.

◆ s

int s = 0

在文件 fftw.xcs28 行定义.

◆ w

int w = 0

在文件 fftw.xcs28 行定义.

被这些函数引用 fftw.fftwComplex.extract(), fftw.fftwComplex.fftwComplex() , 以及 fftw.fftwComplex.fill().