summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-06-05 00:51:03 +0200
committerNao Pross <np@0hm.ch>2024-06-05 00:51:03 +0200
commitb9d9089f17adb52230aa94bf634d6b6df803bcda (patch)
tree04faf00abcd23bf718cc9bbd4754b99636eb9f3a
parentFix bug in arange() (diff)
downloadpolymatrix-b9d9089f17adb52230aa94bf634d6b6df803bcda.tar.gz
polymatrix-b9d9089f17adb52230aa94bf634d6b6df803bcda.zip
Fix bug in CombinationsExpr
-rw-r--r--polymatrix/expression/mixins/combinationsexprmixin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/polymatrix/expression/mixins/combinationsexprmixin.py b/polymatrix/expression/mixins/combinationsexprmixin.py
index 483da96..c42aa89 100644
--- a/polymatrix/expression/mixins/combinationsexprmixin.py
+++ b/polymatrix/expression/mixins/combinationsexprmixin.py
@@ -55,13 +55,13 @@ class CombinationsExprMixin(ExpressionBaseMixin):
# Column vectors are OK
elif ncols == 1:
- degrees = (deg_pm.at(i, 0).constant()
- for i in range(nrows))
+ degrees = tuple(deg_pm.at(i, 0).constant()
+ for i in range(nrows))
# Row vectors are OK
elif nrows == 1:
- degrees = (deg_pm.at(0, i).constant()
- for i in range(ncols))
+ degrees = tuple(deg_pm.at(0, i).constant()
+ for i in range(ncols))
# Matrices are not OK
else: