matbesancon / MathOptSetDistances.jl

Distances to sets for MathOptInterface
MIT License
24 stars 4 forks source link

Reduce duplications #10

Closed matbesancon closed 3 years ago

matbesancon commented 4 years ago

Lots of distances can be deduced from the corresponding projection, when computing the distance only is not more efficient, fallback to computing distance to the projection

matbesancon commented 3 years ago

computing the distance directly avoids allocating, even though the principle of composition is nice