MtxExpr.FFT2D Method

Matrix FFT2D(TMtx X)

Returns the 2D discrete fourier transform of the source data.

#NameTypeDescription
1XTMtxsource TMtx

Returns: Matrix

Remarks:

Internally calls Dew.Math.Matrix.FFT2D

Examples
TMtx a;
TMtx b;
MtxVec.CreateIt(out a, out b);
try
    {
        a.SetIt(2,4,false,
        [1, 2, 3, 4,
        -5, 6,-7, 8]);

        b.FFT2D(a);
        // result will be
        [(12,0), ( 0,4),  (-28,0), (0,-4),
        ( 8,0), (-4,0),  ( 24,0), (-4,0)]

    }
finally
    {
        MtxVec.FreeIt(ref a, ref b);
    }