Skip to content

Commit

Permalink
Don't skip for a single column.
Browse files Browse the repository at this point in the history
E.g. the matrix `[0, 1]^T` should get transformed to `[1, 0]^T`.
  • Loading branch information
chsigg authored Jan 6, 2025
1 parent cb3a575 commit d77909b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/f2reduce/f2reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ namespace f2reduce {

void inplace_rref_strided(uint64_t *matrix, uint64_t rows, uint64_t cols, uint64_t stride) {

if (rows <= 1 || cols <= 1) {
// If the matrix has 0 or 1 rows or columns, it must already be in RREF:
if (rows <= 1 || cols == 0) {
// If the matrix has 0 or 1 rows or 0 columns, it must already be in RREF:
return;
}

Expand Down

0 comments on commit d77909b

Please sign in to comment.