Uploaded image for project: 'Commons Numbers'
  1. Commons Numbers
  2. NUMBERS-56

Wrong dimension check?

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0-beta1
    • complex
    • None

    Description

      In ComplexUtils, at line 989:

      public static double[][][][] complex2Interleaved(Complex[][][][] c, int interleavedDim) {
          if (interleavedDim > 2 || interleavedDim < 0) {
              throw new IndexOutOfRangeException(interleavedDim);
          }
          // ...
      }
      

      at line 1261:

      public static Complex[][][] interleaved2Complex(double[][][] i, int interleavedDim) {
          if (interleavedDim > 2 || interleavedDim < 0) {
              throw new IndexOutOfRangeException(interleavedDim);
          }
          // ...
      }
      

      Shouldn't the upper bound be 3?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment