swapColumns(tmpMatrix, i, j); swapColumns(invMatrix, i, j); multRowWithElementThis(tmpMatrix[i], invCoef); multRowWithElementThis(invMatrix[i], invCoef); if (coef != 0) int[] tmpRow = multRowWithElement(tmpMatrix[i], coef); int[] tmpInvRow = multRowWithElement(invMatrix[i], coef); addToRow(tmpRow, tmpMatrix[j]); addToRow(tmpInvRow, invMatrix[j]); return new GF2mMatrix(field, invMatrix);
swapColumns(tmpMatrix, i, j); swapColumns(invMatrix, i, j); multRowWithElementThis(tmpMatrix[i], invCoef); multRowWithElementThis(invMatrix[i], invCoef); if (coef != 0) int[] tmpRow = multRowWithElement(tmpMatrix[i], coef); int[] tmpInvRow = multRowWithElement(invMatrix[i], coef); addToRow(tmpRow, tmpMatrix[j]); addToRow(tmpInvRow, invMatrix[j]); return new GF2mMatrix(field, invMatrix);