swap_i = this.internalMatrixImag[row1][j]; this.internalMatrixImag[row1][j] = this.internalMatrixImag[row2][j]; this.internalMatrixImag[row2][j] = swap_r;
if(!this.realFlag) { for(int j=0; j<totalCols; j++) { swap_i = this.internalMatrixImag[row1][j]; this.internalMatrixImag[row1][j] = this.internalMatrixImag[row2][j]; this.internalMatrixImag[row2][j] = swap_i; }
    public void swapRows(int row1, int row2) {	int totalRows = this.getRows();	if((row1 < 0)||(row1 >= totalRows)) 	   throw new IllegalArgumentException("invalid parameter row1 = " + row1);	if((row2 < 0)||(row2 >= totalRows)) 	   throw new IllegalArgumentException("invalid parameter row1 = " + row1);	int totalCols = this.getCols();	double swap_r, swap_i;	for(int j=0; j<totalCols; j++) {	    swap_r = this.internalMatrixReal[row1][j];	    this.internalMatrixReal[row1][j] = this.internalMatrixReal[row2][j];	    this.internalMatrixReal[row2][j] = swap_r;	    swap_i = this.internalMatrixImag[row1][j];	    this.internalMatrixImag[row1][j] = this.internalMatrixImag[row2][j];	    this.internalMatrixImag[row2][j] = swap_r;	}    }