We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047bf3e commit 81b4db0Copy full SHA for 81b4db0
source_py3/python_toolbox/combi/perm_space.py
@@ -797,7 +797,7 @@ def index(self, perm):
797
self.sequence_length - 1 -
798
item for item in perm._perm_sequence[::-1]
799
)
800
- perm_number = self.n_elements - 1 - sum(
+ perm_number = self.unsliced.length - 1 - sum(
801
(math_tools.binomial(item, i) for i, item in
802
enumerate(processed_perm_sequence, start=1)),
803
0
0 commit comments