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.

Re() and Im() function of ComplexMatrix generates a OutOfRangeException. #240

@conaonda

Description

@conaonda

The exception is occured from next block.

public static double[,] ToArray(this Complex[] c)
{
...
for (int i = 0; i < rows; i++)
for (int j = 0; i < cols; j++)
re[i, j] = c[i, j].Real;
...
}

Second loop is using invalid condition. It must use "j", not "i".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions