bugfix in 4d complex2Interleaved Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/5dd63435 Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/5dd63435 Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/5dd63435
Branch: refs/heads/master Commit: 5dd63435ba5d5f470f8d7e59c0f0bdf517d05756 Parents: b867022 Author: Eric Barnhill <[email protected]> Authored: Thu Mar 1 14:37:36 2018 +0100 Committer: Eric Barnhill <[email protected]> Committed: Thu Mar 1 14:37:36 2018 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/commons/numbers/complex/ComplexUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/5dd63435/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java ---------------------------------------------------------------------- diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java index 684d406..cdef79f 100644 --- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java +++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java @@ -986,7 +986,7 @@ public class ComplexUtils { * @since 1.0 */ public static double[][][][] complex2Interleaved(Complex[][][][] c, int interleavedDim) { - if (interleavedDim > 2 || interleavedDim < 0) { + if (interleavedDim > 3 || interleavedDim < 0) { throw new IndexOutOfRangeException(interleavedDim); } int w = c.length;
