/** * Self modifying version of viewPart(). * * @throws IndexOutOfBoundsException * if * <tt>column<0 || width<0 || column+width>columns() || row<0 || height<0 || row+height>rows()</tt> */ protected AbstractMatrix2D vPart(int row, int column, int height, int width) { checkBox(row, column, height, width); this.rowZero += this.rowStride * row; this.columnZero += this.columnStride * column; this.rows = height; this.columns = width; this.isNoView = false; return this; }
/** * Self modifying version of viewPart(). * * @throws IndexOutOfBoundsException * if * <tt>column<0 || width<0 || column+width>columns() || row<0 || height<0 || row+height>rows()</tt> */ protected AbstractMatrix2D vPart(int row, int column, int height, int width) { checkBox(row, column, height, width); this.rowZero += this.rowStride * row; this.columnZero += this.columnStride * column; this.rows = height; this.columns = width; this.isNoView = false; return this; }