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

Accord.Math.Transforms.FourierTransform2.DFT2 Is bugged #878

@ivan236634452

Description

@ivan236634452

What would you like to submit? (put an 'x' inside the bracket that applies)

  • question
  • bug report
  • feature request

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions