/** * Self modifying version of viewPart(). * * @throws IndexOutOfBoundsException * if <tt>index<0 || index+width>size()</tt>. */ protected AbstractMatrix1D vPart(int index, int width) { checkRange(index, width); this.zero += this.stride * index; this.size = width; this.isNoView = false; return this; }
/** * Self modifying version of viewPart(). * * @throws IndexOutOfBoundsException * if <tt>index<0 || index+width>size()</tt>. */ protected AbstractMatrix1D vPart(int index, int width) { checkRange(index, width); this.zero += this.stride * index; this.size = width; this.isNoView = false; return this; }