FilterMatrix tempMatrix = new FilterMatrix(numRows,source.getCols()); tempMatrix.copyRowsAt(0,source,sourceRowOffset,numRows); FilterMatrix tempMatrix2 = new FilterMatrix(numRows,numCols); tempMatrix2.copyColumnsAt(0,tempMatrix,sourceColOffset,numCols); this.copyAt(thisRowOffset,thisColOffset,tempMatrix2);
if((numRows > 0)&&(numCols > 0)) { FilterMatrix tempMatrix = new FilterMatrix(numRows,source.getCols()); tempMatrix.copyRowsAt(0,source,sourceRowOffset,numRows); FilterMatrix tempMatrix2 = new FilterMatrix(numRows,numCols); tempMatrix2.copyColumnsAt(0,tempMatrix,sourceColOffset,numCols); this.copyAt(thisRowOffset,thisColOffset,tempMatrix2); }
    public void copyRowsAndColsAt(int thisRowOffset, int thisColOffset, FilterMatrix source, int sourceRowOffset, int sourceColOffset, int numRows, int numCols) { 	FilterMatrix tempMatrix = new FilterMatrix(numRows,source.getCols());	tempMatrix.copyRowsAt(0,source,sourceRowOffset,numRows);	FilterMatrix tempMatrix2 = new FilterMatrix(numRows,numCols);	tempMatrix2.copyColumnsAt(0,tempMatrix,sourceColOffset,numCols);	this.copyAt(thisRowOffset,thisColOffset,tempMatrix2);    }