Skip to content

Commit

Permalink
Fix typos in docstring of CountCompare (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Oct 17, 2024
1 parent 2fb38a2 commit 20c4166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sets_count.jl
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ end
``\\{(z, x, y) \\in \\mathbb{N} \\times \\mathbb{R}^\\mathtt{dimension} \\times \\mathbb{R}^\\mathtt{dimension} : Z = |\\{i | x_i = y_i\\}|\\}``
The first `dimension` variables are the first array that is compared to the
second one, indicated by the next `dimension` variables. The last variable
The first `dimension` variables after `z` are the first array that is compared to the
second one, indicated by the next `dimension` variables. The first variable
is the number of values that are identical in both arrays.
## Example
[v, w, x, y, z] in Count(2)
# w == sum([w, x] .== [y, z])
# v == sum([w, x] .== [y, z])
"""
struct CountCompare <: MOI.AbstractVectorSet
dimension::Int
Expand Down

0 comments on commit 20c4166

Please sign in to comment.