public DoubleMatrix2D viewPart(final int row, final int column, int height, int width) { checkBox(row, column, height, width); WrapperDoubleMatrix2D view = new WrapperDoubleMatrix2D(this) { /** * */ private static final long serialVersionUID = 1L; public synchronized double getQuick(int i, int j) { return content.getQuick(row + i, column + j); } public synchronized void setQuick(int i, int j, double value) { content.setQuick(row + i, column + j, value); } public synchronized double get(int i, int j) { return content.get(row + i, column + j); } public synchronized void set(int i, int j, double value) { content.set(row + i, column + j, value); } }; view.rows = height; view.columns = width; view.isNoView = false; return view; }
public DoubleMatrix2D viewPart(final int row, final int column, int height, int width) { checkBox(row, column, height, width); WrapperDoubleMatrix2D view = new WrapperDoubleMatrix2D(this) { /** * */ private static final long serialVersionUID = 1L; public synchronized double getQuick(int i, int j) { return content.getQuick(row + i, column + j); } public synchronized void setQuick(int i, int j, double value) { content.setQuick(row + i, column + j, value); } public synchronized double get(int i, int j) { return content.get(row + i, column + j); } public synchronized void set(int i, int j, double value) { content.set(row + i, column + j, value); } }; view.rows = height; view.columns = width; view.isNoView = false; return view; }