Function fft #
Calculate N-dimensional Fourier transform
Syntax #
math.fft(arr)
Parameters #
Parameter | Type | Description |
---|---|---|
arr |
Array | Matrix | An array or matrix |
Returns #
Type | Description |
---|---|
Array | Matrix | N-dimensional Fourier transformation of the array |
Throws #
Type | Description —- | ———–
Examples #
math.fft([[1, 0], [1, 0]]) // returns [[{re:2, im:0}, {re:2, im:0}], [{re:0, im:0}, {re:0, im:0}]]