Skip to content

Improve combinatorics functionality in mathnet-numerics #485

Description

@s952163

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions