mpcrl.util.math.nchoosek#
- mpcrl.util.math.nchoosek(n, k)[source]#
Emulates MATLAB’s nchoosek, and returns the binomial coefficient, i.e., the number of combinations of
nitems takenkat a time. Ifnis an array, then it is flatten and all possible combinations of its elements are returned.