--- layout: default ---

Function fft #

Calculate N-dimensional Fourier transform

Syntax #

```js 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 #

```js math.fft([[1, 0], [1, 0]]) // returns [[{re:2, im:0}, {re:2, im:0}], [{re:0, im:0}, {re:0, im:0}]] ```

See also #

[ifft](ifft.html)