Talk:Reduced row echelon form: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 208:
and then applied the code on this resulting matrix which generated an error. It seems that step 1 and step 2 do not recognize the correct pivot column for examples where there exist free variables in front of pivot columns (In the example above the second column of the resulting matrix). I corrected this by changing method isColumnZeroes not to consider the whole column:
<lang java>
public boolean isColumnZeroes(Coordinate coordinatea) {
for (int i = coordinatea.row; i < this.heightnumRows; i++) { // <- not from i=0!!!!11
if (this.matrix[.get(i][coordinate).get(a.col]).getRatiodoubleValue() != 0.0) {
return false;
}
}
 
return true;
}