M2 icon indicating copy to clipboard operation
M2 copied to clipboard

Bug in reducedRowEchelonForm

Open jchen419 opened this issue 3 years ago • 0 comments
trafficstars

The method reducedRowEchelonForm does not put identically zero rows at the bottom (and thus is technically not even in row echelon form, cf. here):

i1 : A = matrix{{0_(ZZ/2),0,0},{1,0,1},{0,1,1}}

o1 = | 0 0 0 |
     | 1 0 1 |
     | 0 1 1 |

             ZZ 3       ZZ 3
o1 : Matrix (--)  <--- (--)
              2          2

i2 : A == reducedRowEchelonForm A

o2 = true

Also, it would be nice for reducedRowEchelonForm to support more types of rings, e.g. cyclotomicFields from the Cyclotomic package, or more generally any output of toField.

jchen419 avatar May 20 '22 19:05 jchen419