Skip to content

Commit

Permalink
remove duplicate constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Oct 8, 2023
1 parent 2f62a9e commit b0a9577
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/abstract_oracles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,20 +256,3 @@ function compute_extreme_point(
end
return v
end

"""
ProductLMO(lmos...)
Linear minimization oracle over the Cartesian product of multiple LMOs.
"""
struct ProductLMO{N,TL<:NTuple{N,LinearMinimizationOracle}} <: LinearMinimizationOracle
lmos::TL
end

function ProductLMO{N}(lmos::TL) where {N,TL<:NTuple{N,LinearMinimizationOracle}}
return ProductLMO{N,TL}(lmos)
end

function ProductLMO(lmos::Vararg{LinearMinimizationOracle,N}) where {N}
return ProductLMO{N}(lmos)
end

0 comments on commit b0a9577

Please sign in to comment.