@Override public DoubleArrayView clone() { return new DoubleArrayView(this.toArray()); } }
/** * Get a subview of this view from l1 (inclusive) to r1 (exclusive). * @param l1 start (left) index * @param r1 end (right) index * @return subview */ public DoubleArrayView subView(int l1, int r1) { if ((l+l1) < 0 || (l+r1)>r) throw new ArrayIndexOutOfBoundsException(); return new DoubleArrayView(array, l+l1, l+r1); }