This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Description
What would you like to submit? (put an 'x' inside the bracket that applies)
Issue description
File: Accord.Math/Transforms/FourierTransform2.cs
Method: public static void DFT2(Complex[][] data, FourierTransform.Direction direction)
...
int n = data.Length;
int m = data[0].Length;
...
// process rows
var row = new Complex[m];
for (int i = 0; i < n; i++)
...
// process columns
var col = new Complex[n];
for (int j = 0; j < n; j++) // <- Must be m instead of n.
...
As it is now, columns are processed partially, or IndexOutOfRangeException is thrown.