You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > FFT2D Method > Matrix.FFT2D Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.FFT2D Method ()

Forward two-dimentional Fast Fourier Transformation from real/complex to complex.

Pascal
function FFT2D: TMtx; overload;

The transformation is applied in-place. The source matrix may be real or complex. The result will be always complex. The size of the calling matrix is not changed. (rows and cols will not chage).

var a: Matrix; begin a.SetIt(2,4,False, [1, 2, 3, 4, -5, 6,-7, 8]); a.FFT2D; // result will be [(12,0), ( 0,4), (-28,0), (0,-4), ( 8,0), (-4,0), ( 24,0), (-4,0)] end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!