Converted partition functions from tasks to iterators#4055
Merged
StefanKarpinski merged 2 commits intomasterfrom Aug 14, 2013
Merged
Converted partition functions from tasks to iterators#4055StefanKarpinski merged 2 commits intomasterfrom
StefanKarpinski merged 2 commits intomasterfrom
Conversation
* Renamed integer_partitions -> partitions (multiple dispatch!) * Added partitions(n) variant to generate all integer partitions * Added npartitions, nsetpartitions functions * Updated docs
Also speed up SetPartitions iteration
Member
|
The fact that you can construct a partitions type of object and then take its length maybe indicates that we don't need to export npartitions and such, but if npartiations and nsetpartitions could be collapsed into a single function, maybe it makes sense. I certainly don't think they warrant a package since they're so closely related to this functionality. The subset functionality I mentioned is possibly subsumed by combinations since |
StefanKarpinski
added a commit
that referenced
this pull request
Aug 14, 2013
Converted partition functions from tasks to iterators
stevengj
added a commit
that referenced
this pull request
Aug 14, 2013
IanButterworth
pushed a commit
that referenced
this pull request
Oct 21, 2024
…b6e99 (#56261) Stdlib: Pkg URL: https://github.com/JuliaLang/Pkg.jl.git Stdlib branch: release-1.11 Julia branch: backports-release-1.11 Old commit: aba90d22b New commit: 9438b6e99 Julia version: 1.11.1 Pkg version: 1.11.0(Does not match) Bump invoked by: @IanButterworth Powered by: [BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl) Diff: JuliaLang/Pkg.jl@aba90d2...9438b6e ``` $ git log --oneline aba90d22b..9438b6e99 9438b6e99 Merge pull request #4055 from JuliaLang/backports-release-1.11 c83160aac REPLExt: use Base.isaccessibledir rather than isdir in completions (#4053) 7997ec320 REPLExt: run repl hint generation for modeswitch chars when not switching (#4054) ``` Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
integer_partitions->partitions(multiple dispatch!)Notes
This should close #3989, except for the
subsetsfunction that Stefan suggested.