We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5731120 commit 83e20ccCopy full SHA for 83e20cc
sumpy/tools.py
@@ -603,7 +603,7 @@ def nullspace(m, atol=0):
603
vec = [0]*cols
604
vec[free_var] = 1
605
for piv_row, piv_col in enumerate(pivot_cols):
606
- for pos in pivot_cols[piv_row+1:] + [free_var]:
+ for pos in (*pivot_cols[piv_row+1:], free_var):
607
if isinstance(mat[piv_row, pos], sym.Integer):
608
vec[piv_col] -= int(mat[piv_row, pos])
609
else:
0 commit comments