Talk:Reduced row echelon form

From Rosetta Code
Revision as of 00:25, 5 May 2009 by Underscore (talk | contribs) (New page: =="Break" vs. "return" bug== The original author of the Python example mistakenly translated the keyword <code>stop</code> that appears in the [http://en.wikipedia.org/wiki/Row_echelon_fo...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

"Break" vs. "return" bug

The original author of the Python example mistakenly translated the keyword stop that appears in the Wikipedia pseudocode as break rather than the correct return. This created a control-flow bug that didn't manifest itself when the program was run on the example matrix given in the task description, but did cause an exception if the program was run on, e.g.,

 1  2  3  4  3  1
 2  4  6  2  6  2
 3  6 18  9  9 -6
 4  8 12 10 12  4
 5 10 24 11 15 -4

I noticed and fixed the bug a couple of days ago, but it seems that several of the other examples written before then (being, by and large, translations from the Python) copied the bug. Hence, I've marked all the examples that looked like they might have this bug with the needs-review template. Note that I erred on the side of false positives. That is, I'm pretty sure the examples I didn't mark are bug-free, but some of the ones I did mark may be fine. —Underscore 00:25, 5 May 2009 (UTC)