jhlee-visionkalman / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

Result of Combinatorics.Permutations(array) method does not include the original array #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. var result = Combinatorics.Permutations(new [] { 1, 2 }).ToList();
2. result: {{2, 1}}

What is the expected output? What do you see instead?

Expected output is {{1, 2}, {2, 1}}.
Observed output is {{2, 1}}

What version of the product are you using? On what operating system?

Accord.NET 2.12; Windows 7 x64

Please provide any additional information below.

For definitions of permutation see:
http://en.wikipedia.org/wiki/Permutation
http://mathworld.wolfram.com/Permutation.html

Original issue reported on code.google.com by olkoro...@gmail.com on 5 Jul 2014 at 8:45

GoogleCodeExporter commented 9 years ago
Thanks! Will be fixed in the next release (2.13).

Original comment by cesarso...@gmail.com on 5 Jul 2014 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by cesarso...@gmail.com on 8 Aug 2014 at 10:03

GoogleCodeExporter commented 9 years ago
Available on release 2.13.

Original comment by cesarso...@gmail.com on 19 Aug 2014 at 8:34