-
Notifications
You must be signed in to change notification settings - Fork 152
fixed call_test_max_ball_sparse #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,7 @@ void call_test_max_ball_sparse() { | |
|
|
||
| // Initialize order polytope from the poset | ||
| OrderPolytope<Point> OP(poset); | ||
|
|
||
| OP.normalize(); | ||
| SpMT Asp = OP.get_mat(); | ||
| MT A = MT(OP.get_mat()); | ||
|
|
@@ -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); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@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); | ||
| } | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed