Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/test_internal_points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void call_test_max_ball_sparse() {

// Initialize order polytope from the poset
OrderPolytope<Point> OP(poset);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed

OP.normalize();
SpMT Asp = OP.get_mat();
MT A = MT(OP.get_mat());
Expand All @@ -84,7 +85,7 @@ void call_test_max_ball_sparse() {
CHECK(OP.is_in(Point(center)) == -1);
auto [E, x0, round_val] = inscribed_ellipsoid_rounding<MT, VT, NT>(OP, Point(center));

CHECK((center - center_).norm() <= 1e-06);
CHECK((center - center_).norm() <= 5e-04);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since 1e-06 is ok for linux machines (e.g. ubuntu) I think it is better to leave it and add a case for macos where 5e-04 will be used. Have you tried with different compilers (gcc) and various versions on mac and still you are getting this error?

It would be useful to add a CI test for mac.

Copy link
Author

@Anushkaagrawal22 Anushkaagrawal22 Feb 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since 1e-06 is ok for linux machines (e.g. ubuntu) I think it is better to leave it and add a case for macos where 5e-04 will be used. Have you tried with different compilers (gcc) and various versions on mac and still you are getting this error?

It would be useful to add a CI test for mac.

image image

@vfisikop The checks that are currently failing were passing in the push workflow but are now failing in the PR workflow. I'm testing with different compilers and multiple macOS versions. I'll also be adding a CI test for macOS, and if I find that the issue persists across more versions, I'll add a case for macOS where 5e-4 will be used instead of 1e-6.

CHECK(std::abs(radius - 0.207107) <= 1e-06);
CHECK(converged);
}
Expand Down
Loading