-
Notifications
You must be signed in to change notification settings - Fork 163
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
PKG: Add convexhull computation package #1840
Conversation
Ready. |
|
||
n: i32 = len(points) | ||
if n < 3: | ||
return [(-1, -1)] # Convex hull not possible |
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.
It seems that we do not support returning empty lists (#1841). Therefore, returning a list with single item with negative/invalid coordinates.
@@ -528,6 +528,7 @@ RUN(NAME test_package_01 LABELS cpython llvm) | |||
RUN(NAME test_pkg_lpdraw LABELS cpython llvm wasm) | |||
RUN(NAME test_pkg_lnn_01 LABELS cpython llvm) | |||
RUN(NAME test_pkg_lnn_02 LABELS cpython llvm) | |||
RUN(NAME test_pkg_lpconvexhull LABELS cpython c) |
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.
Does it work with llvm?
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.
Does it work with llvm?
It does not work with LLVM yet. I will create an issue for it soon.
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.
In that case I think this looks good. Let's merge the sync PR first .
c5c9271
to
fe0e7bf
Compare
towards #992