code: public double[] toArray() {
          double[] r = new double[vectorLength - vectorOffset];
          for (int i = vectorOffset; i < vectorLength; ++i)
              r[i] = intVector.get(i);
          return r;
      }
docs: {@inheritDoc}