PandA-2024.02
examples
MachSuite
MachSuite
fft
transpose
fft_test.c
Go to the documentation of this file.
1
#include "
fft.h
"
2
3
int
main
(){
4
TYPE
a_x[512];
5
TYPE
a_y[512];
6
int
i;
7
float
max
,
min
;
8
max = 2147483646.0;
9
min = -2147483646.0;
10
11
for
( i = 0; i < 512; i++){
12
a_x[i] = (
TYPE
)(i);
//(TYPE)(((double) rand() / (RAND_MAX)) * (max-min) + min);//i;
13
a_y[i] = (
TYPE
)(i);
//(((double) rand() / (RAND_MAX)) * (max-min) + min);//i;
14
}
15
16
printf(
"ORIG!\n"
);
17
for
( i = 0; i < 512; i++){
18
printf(
"x = %f y = %f \n"
, a_x[i], a_y[i]);
19
}
20
21
fft1D_512
(a_x, a_y);
22
23
printf(
"OUTPUT\n"
);
24
for
( i = 0; i < 512; i++){
25
printf(
"x = %f y = %f \n"
, a_x[i], a_y[i]);
26
}
27
28
fft1D_512
(a_x, a_y);
29
30
printf(
"NORMAL\n"
);
31
for
( i = 0; i < 512; i++){
32
printf(
"x = %f y = %f \n"
, a_x[i]/512, a_y[i]/512);
33
}
34
35
return
0;
36
}
main
int main()
Definition:
fft_test.c:3
TYPE
#define TYPE
Definition:
backprop.h:21
min
#define min(x, y)
max
#define max
Definition:
backprop.h:17
fft.h
fft1D_512
void fft1D_512(TYPE work_x[512], TYPE work_y[512])
Definition:
fft.c:113
Generated on Mon Feb 12 2024 13:02:49 for PandA-2024.02 by
1.8.13