code: public double[] getValuesAsNativeArray() {
          double[] vs = new double[this.size()];
          for (int c = 0; c < vs.length; c++) {
              vs[c] = getValue(c);
          }
          return vs;
      }
docs: Gets a copy of the internal values as a native array.