Skip to content

Commit

Permalink
minor doctest fix for simplify operation and linear_partition
Browse files Browse the repository at this point in the history
  • Loading branch information
sebvz777 committed Jul 26, 2024
1 parent 80ad141 commit 91fb265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion experimental/SetPartitions/src/LinearPartition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ the `LinearPartition` object with the corresponding dict.
julia> S, d = polynomial_ring(QQ, "d")
(Univariate polynomial ring in d over QQ, d)
linear_partition(S, [(set_partition([1, 1], [1, 1]), 4), (set_partition([1, 1], [1, 1]), 4*d)])
julia> linear_partition(S, [(set_partition([1, 1], [1, 1]), 4), (set_partition([1, 1], [1, 1]), 4*d)])
LinearPartition{SetPartition, QQPolyRingElem}(Univariate polynomial ring in d over QQ, Dict{SetPartition, QQPolyRingElem}(SetPartition([1, 1], [1, 1]) => 4*d + 4))
```
"""
Expand Down
4 changes: 2 additions & 2 deletions experimental/SetPartitions/src/Util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ julia> S, d = polynomial_ring(QQ, "d")
(Univariate polynomial ring in d over QQ, d)
julia> simplify_operation([(set_partition([1, 1], [1, 1]), S(10)), (set_partition([1, 1], [1, 1]), 4*d)])
Dict{SetPartition, QQPolyRingElem} with 1 entry:
SetPartition([1, 1], [1, 1]) => 4*d + 10
1-element Vector{Tuple{SetPartition, QQPolyRingElem}}:
(SetPartition([1, 1], [1, 1]), 4*d + 10)
```
"""
function simplify_operation(partition_sum::Vector{Tuple{S, T}}) where { S <: AbstractPartition, T <: RingElement }
Expand Down

0 comments on commit 91fb265

Please sign in to comment.