function_fft
An external function to carry out FFT
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | dir | 1 | Calculation direction: 1 - forward; -1 - backward |
| Integer | m | 3 | Data points = 2^m |
| Real | x | {i for i in 1:8} | Real part of the data |
| Real | y | {0, 0, 0, 0, 0, 0, 0, 0} | Imaginary part of the data |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x_out | x | Real part of the result |
| Real | y_out | y | Imaginary part of the result |