Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Sep 5, 2023
1 parent 8d3e265 commit 422866a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utilities/set_dot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Return the scalar product between a vector `x` of the set `set` and a vector
`y` of the dual of the set `s`.
"""
function set_dot(x::AbstractVector, y::AbstractVector, ::MOI.AbstractVectorSet)
return dot(x, y)
return LinearAlgebra.dot(x, y)
end

"""
Expand All @@ -24,7 +24,7 @@ end
Return the scalar product between a number `x` of the set `set` and a number
`y` of the dual of the set `s`.
"""
set_dot(x, y, ::MOI.AbstractScalarSet) = dot(x, y)
set_dot(x, y, ::MOI.AbstractScalarSet) = LinearAlgebra.dot(x, y)

function triangle_dot(
x::AbstractVector{S},
Expand Down Expand Up @@ -250,7 +250,7 @@ a vector `x` in `set` and `y` in `MOI.dual_set(set)` such that
Combined with `LinearAlgebra`, this vector can be used to scale
a [`MOI.AbstractVectorFunction`](@ref).
```
```jldoctest
julia> import MathOptInterface as MOI
julia> model = MOI.Utilities.Model{Float64}()
Expand Down

0 comments on commit 422866a

Please sign in to comment.