docs: public static DoubleArrayND wrap(DoubleTuple t, IntTuple size)
      {
          Objects.requireNonNull(t, "The tuple is null");
          Objects.requireNonNull(size, "The size is null");
          int totalSize = IntTupleFunctions.reduce(size, 1, (a, b) -> a * b);
          if (t.getSize() != totalSize)
          {
              throw new IllegalArgumentException(
                  "The tuple has a size of " + t.getSize() + ", the expected " + 
                  "array size is " + size + " (total: " + totalSize + ")");
          }
          return new TupleDoubleArrayND(t, size);
      }