Skip to content

Commit

Permalink
Undid the NrRows instead of Length
Browse files Browse the repository at this point in the history
  • Loading branch information
hulpke committed Apr 20, 2022
1 parent 93d328e commit 66c13e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/vecmat.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,12 @@ local sf, rep, ind, ind2, row, i,big,l,nr;
rep:=IsPlistRep;
fi;

nr:=NrRows(matrix);
# cannot use NrRows consistently, as input might be mixed format
if IsList(matrix) then
nr:=Length(matrix);
else
nr:=NrRows(matrix);
fi;

# get the indices of the rows that need changing the representation.
ind:=[]; # rows to convert
Expand Down

0 comments on commit 66c13e5

Please sign in to comment.