Skip to content

Commit c564a6c

Browse files
committed
der
1 parent f3881db commit c564a6c

6 files changed

Lines changed: 7 additions & 58 deletions

File tree

docs/src/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,6 @@ ModuleSetPartitions
334334
ModuleSetPartitionsMType
335335
```
336336
```@docs
337-
ModuleSetPartitionsMType
338-
```
339-
```@docs
340337
ModuleStirlingNumbers
341338
```
342339
```@docs

docs/src/modules.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,6 @@ Return the numbers of partitions of an ``n``-set into nonempty subsets.
416416
* SetNumber(n::Int, m::Int)
417417
Return the numbers of partitions of an ``n``-set into ``m`` nonempty subsets.
418418

419-
  🔶  [SetPartitionsByShape](https://github.com/OpenLibMathSeq/IntegerSequences.jl/blob/master/src/SetPartitionsByShape.jl)
420-
421-
422-
general Definition
423-
424-
* exported functions
425-
426419
  🔶  [SetPartitionsMType](https://github.com/OpenLibMathSeq/IntegerSequences.jl/blob/master/src/SetPartitionsMType.jl)
427420

428421

src/BuildSequences.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ docsrcdir = joinpath(docdir, "src")
3535
@info("The following modules are included in IntegerSequences.jl:")
3636

3737
exclude = [
38+
"SetPartitionsByShape.jl",
3839
"TemplateModule.jl",
3940
"BuildSequences.jl",
4041
"IntegerSequences.jl",

src/IntegerSequences.jl

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright Peter Luschny. License is MIT.
33
# This file includes parts from Combinatorics.jl in modified form.
44

5-
# Version of: UTC 2019-10-26 10:41:45
6-
# 71458000-f7cc-11e9-0078-e76d536f0017
5+
# Version of: UTC 2019-10-26 11:05:54
6+
# d0bdc762-f7cf-11e9-039b-3d57130533ac
77

88
# Do not edit this file, it is generated from the modules and will be overwritten!
99
# Edit the modules in the src directory and build this file with BuildSequences.jl!
@@ -123,7 +123,6 @@ ModuleSeqUtils,
123123
ModuleSeriesExpansion,
124124
ModuleSetPartitions,
125125
ModuleSetPartitionsMType,
126-
ModuleSetPartitionsMType,
127126
ModuleStirlingNumbers,
128127
ModuleSwingFactorial,
129128
ModuleTriangles,
@@ -7882,45 +7881,6 @@ Return the numbers of partitions of an ``n``-set into nonempty subsets.
78827881
$(SIGNATURES)
78837882
"""
78847883
SetNumber(n::Int) = Int(Nemo.bell(n))
7885-
# *** SetPartitionsByShape.jl ****************
7886-
"""
7887-
7888-
general Definition
7889-
7890-
* exported functions
7891-
"""
7892-
const ModuleSetPartitionsMType = ""
7893-
function P(m, n)
7894-
R, x = PolynomialRing(ZZ, "x")
7895-
function recP(m, n, x)
7896-
n == 0 && return R(1)
7897-
sum(binomial(m*n, m*k)*recP(m, n-k, x)*x for k in 1:n)
7898-
end
7899-
n == 0 && return [ZZ(1)]
7900-
p = recP(m, n, x)
7901-
[coeff(p, k) for k in 0:n]
7902-
end
7903-
function xmSetPartitions(m, n, k)
7904-
shapes = (map(x -> x*m, p) for p in IntegerPartitions(n, k))
7905-
p = []
7906-
if shapes != Nothing
7907-
for s in shapes
7908-
if s != Nothing
7909-
vcat(p, [p for p in SetPartitions(s)]) |>println
7910-
end end
7911-
end
7912-
end
7913-
function SP_byLength(m, n)
7914-
n == 0 && return [n]
7915-
[sum(mSetPartitions(m, n, k)) for k in 1:n]
7916-
end
7917-
function SP_byShape(m, n)
7918-
[p for k in 1:n for p in mSetPartitions(m, n, k)]
7919-
end
7920-
RowSum(m, n) = sum(SP_byLength(m, n))
7921-
ARowSum(m, n) = sum((-1)^k*sum(mSetPartitions(m, n, k)) for k in 0:n)
7922-
Diagonal(m,n) = mSetPartitions(m, n, n)[0]
7923-
Central(m, n) = SP_byLength(m, 2n)[n]
79247884
# *** SetPartitionsMType.jl ****************
79257885
"""
79267886

test/perftests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright Peter Luschny. License is MIT.
33
# This file includes parts from Combinatorics.jl in modified form.
44

5-
# Version of: UTC 2019-10-26 10:41:45
6-
# 714d4830-f7cc-11e9-225f-e76193ad304c
5+
# Version of: UTC 2019-10-26 11:05:54
6+
# d0c78b60-f7cf-11e9-0366-0f326e41e5cb
77

88
# Do not edit this file, it is generated from the modules and will be overwritten!
99
# Edit the modules in the src directory and build this file with BuildSequences.jl!
@@ -250,7 +250,6 @@ println("\nTEST: L005411(500)")
250250
println("\nTEST: L068875(1000)")
251251
@time L068875(1000)
252252
# +++ SetPartitions.jl +++
253-
# +++ SetPartitionsByShape.jl +++
254253
# +++ SetPartitionsMType.jl +++
255254
# +++ StirlingLahNumbers.jl +++
256255
GC.gc()

test/runtests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright Peter Luschny. License is MIT.
33
# This file includes parts from Combinatorics.jl in modified form.
44

5-
# Version of: UTC 2019-10-26 10:41:45
6-
# 714ab020-f7cc-11e9-2b0e-bf0fa345d206
5+
# Version of: UTC 2019-10-26 11:05:54
6+
# d0c56880-f7cf-11e9-1a47-a1b63262b80d
77

88
# Do not edit this file, it is generated from the modules and will be overwritten!
99
# Edit the modules in the src directory and build this file with BuildSequences.jl!
@@ -994,7 +994,6 @@ end
994994
@test_throws DomainError SetPartitions([ ], -1)
995995
@test_throws DomainError SetPartitions([1], -1)
996996
end
997-
# *** SetPartitionsByShape.jl *********
998997
# *** SetPartitionsMType.jl *********
999998
@testset "OrderedSetPolynomialsitionsMType" begin
1000999
@test string(P097805(3)) == "x^3+2*x^2+x"

0 commit comments

Comments
 (0)