Gilles created NUMBERS-56:
-----------------------------

             Summary: Wrong dimension check?
                 Key: NUMBERS-56
                 URL: https://issues.apache.org/jira/browse/NUMBERS-56
             Project: Commons Numbers
          Issue Type: Bug
          Components: complex
            Reporter: Gilles
             Fix For: 1.0


In {{ComplexUtils}} (line 989):
{code:java}
public static double[][][][] complex2Interleaved(Complex[][][][] c, int 
interleavedDim) {
    if (interleavedDim > 2 || interleavedDim < 0) {
        throw new IndexOutOfRangeException(interleavedDim);
    }
    // ...
}
{code}
Shouldn't the upper bound be 3?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to