Skip to content

Commit

Permalink
import Base.isempty
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrosemberg committed Feb 7, 2025
1 parent 1a08906 commit 5af9828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/DiffOpt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import MathOptSetDistances as MOSD
import ParametricOptInterface as POI
import SparseArrays

import Base.isempty

include("utils.jl")
include("product_of_sets.jl")
include("diff_opt.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/diff_opt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Base.empty!(cache::InputCache)
return
end

function isempty(cache::InputCache)
function Base.isempty(cache::InputCache)
return isempty(cache.dx) && isempty(cache.scalar_constraints) &&
isempty(cache.vector_constraints) && cache.objective === nothing
end
Expand Down

0 comments on commit 5af9828

Please sign in to comment.