Unit test ProxTwoSimplexSortTest fails with recent Apple LLVM
Recent OS X builds failed with something that looks like a numerical issue, see https://travis-ci.org/mlapin/libsdca/jobs/179850780
The builds used
$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
I tested with
$ clang --version
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
and could not reproduce the issue.
Fixed in 0.3.0 (#4). thresholds_two_simplex_sort no longer has its own sort-based sweep, whose termination depended on an eps-scaled comparison; it now calls the main two-simplex projection (thresholds_two_simplex), which keeps tiny scores and caps and has no tolerance floors. ProxTwoSimplexSortTest (float and double) passes in the new CI on macOS 15 arm64 with AppleClang 17, and on Linux with g++, clang++-18 and the sanitizers. Travis is replaced by GitHub Actions, including the macOS job. This issue closes when #4 is merged.