public void setTwoDarray(double[][] aarray){
		    if(this.numberOfRows != aarray.length)throw new IllegalArgumentException("row length of this Matrix differs from that of the 2D array argument");
		    if(this.numberOfColumns != aarray[0].length)throw new IllegalArgumentException("column length of this Matrix differs from that of the 2D array argument");
		    for(int i=0; i<numberOfRows; i++){
		    	if(aarray[i].length!=numberOfColumns)throw new IllegalArgumentException("All rows must have the same length");
    			for(int j=0; j<numberOfColumns; j++){
    		    		this.matrix[i][j]=aarray[i][j];
    			}
		    }
	    }