We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integer_partitions(n) should be deprecated in favour of partitions(n::Integer).
integer_partitions(n)
partitions(n::Integer)
Additionally, partitions is not documented in the readme.
partitions
These functions currently do not behave the same: In the 0 case, both are broken, the partitions case discussed in #79 :
julia> integer_partitions(0) 0-element Array{Array{Int64,1},1} julia> partitions(0)|>collect 1-element Array{Array{Int64,1},1}: #undef
but should return [[]]
[[]]
For n>0 the results of integer_partitions is sorted opposite to partitions:
n>0
integer_partitions
julia> collect(partitions(3)) 3-element Array{Array{Int64,1},1}: [3] [2, 1] [1, 1, 1] julia> integer_partitions(3) 3-element Array{Array{Int64,1},1}: [1, 1, 1] [2, 1] [3]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
integer_partitions(n)
should be deprecated in favour ofpartitions(n::Integer)
.Additionally,
partitions
is not documented in the readme.These functions currently do not behave the same:
In the 0 case, both are broken, the
partitions
case discussed in #79 :but should return
[[]]
For
n>0
the results ofinteger_partitions
is sorted opposite topartitions
:The text was updated successfully, but these errors were encountered: