diff --git a/src/lib.rs b/src/lib.rs index 7c02ff7..1356e6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -254,7 +254,7 @@ impl Matrix { new_matrix.set_row(i, new_pivot_row); for r in 0..new_matrix.rows { - if r == 1 { + if r == i { continue; }