Am 13.06.2021 um 12:45 schrieb Riccardo (Jack) Lucchetti:
On Sun, 13 Jun 2021, Artur T. wrote:
> If we agree that this shall become part of the extra package, I add
> 2-3 tests to our test suit for extra.
Nice work, Artur. I vote for "combinations()".
Glad it's not going to be "choose"...
to add in the documentation that the recursive algorithm I used is
not
the fastest when arguments are large.
Would it be very difficult to add the faster algorithm?
About the Matlab name nchoosek: Not sure whether Peter Summers is still
around, but perhaps a nchoosek function could be added to his
matlab_utilities package which would be a thin wrapper around the native
bincoeff and the new combinations (or whatever name) functions.
cheers
sven