Replies: 1 comment
-
Is there any movement of that discussion? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a feature request to improve combinatorics related functionality in MathNet.Numerics. The combinatorics namespace does contain the functions to calculate the number of possible combinations/variations/permutations. It also contains the functions to generate a random sample of those. However unfortnately it lacks functionality to actually generate all the combinations etc. For example see this SO post, so one ends up using recursion or list comprehensions. F# 4.1 has added
List.allPairs
for the Cartesian product.As this is the go-to library for statistical and numerical analysis it would be great if Mathnet.Numerics could generate the actual variations/permutations/combinations with and without repetitions. In .NET currently this library does: https://github.com/eoincampbell/combinatorics . For examples see: https://www.codeproject.com/Articles/26050/Permutations-Combinations-and-Variations-using-C-G and Combinatorics in .NET Part 1.
Beta Was this translation helpful? Give feedback.
All reactions