Combinatorics.jl
Combinatorics.jl copied to clipboard
A combinatorics library for Julia
Hey everybody, I implemented this functionality for computing vector partitions years ago and submitted a pull request which grew stale. I recently got back to this and in the hope...
Closes Issues #86 and #123. Currently the output of `combinations(a)` does not include the empty combination, which is a bug. Also in the tests, we should have `combinations([]) = [[]]`,...
> The documentation for stirlings1 and stirlings2 indicates that they can use BigInts if provided with such as argument. However the existing functions specify n and k arguments to be...
Use inline in the combinations iterator to help with https://github.com/JuliaMath/Combinatorics.jl/pull/73
This has been previously mentioned in https://github.com/JuliaMath/Combinatorics.jl/issues/86 and https://github.com/jmichel7/Combinat.jl
I sometimes need all subsets of a particular size of some small integers. Moreover, I need them as bit masks, all bit patterns of a particular weight, e.g. `0b011`, `0b101`,...
Bumps [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia) from 1 to 2. Release notes Sourced from julia-actions/setup-julia's releases. v2.0.0 - Update to Node20 What's Changed update to node20 by @ranocha in julia-actions/setup-julia#209 Note the rationale for...
iterators like `pemutations` do not support @threads ``` julia> P=permutations(1:3) Combinatorics.Permutations{UnitRange{Int64}}(1:3, 3) julia> for p∈P println(p) end [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3,...
in analogy to the same case for regular `permuations`
This package doesn't actually seem to have the gamma function, but exports that symbol anyway. Did I miss something?