-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Merge duplications in edges, ridges and f-vector of combinatorial polyhedron #30445
Milestone
Comments
Reviewer: Travis Scrimshaw |
comment:4
Some minor formatting things (which you can either change or ignore and then set this to a positive review): - cdef size_t _compute_edges_or_ridges_with_iterator(self, FaceIterator face_iter, bint do_atom_rep, size_t ***edges_pt, size_t *counter_pt, size_t *current_length_pt, MemoryAllocator mem) except -1:
+ cdef size_t _compute_edges_or_ridges_with_iterator(self, FaceIterator face_iter,
+ bint do_atom_rep,
+ size_t ***edges_pt,
+ size_t *counter_pt,
+ size_t *current_length_pt,
+ MemoryAllocator mem) except -1:
r"""
See :meth:`CombinatorialPolyhedron._compute_edges`.
"""
cdef size_t a,b # facets of an edge
cdef int dim = self.dimension()
cdef output_dimension = 1 if do_atom_rep else dim - 2
- while (face_iter.next_dimension() == output_dimension):
+ while face_iter.next_dimension() == output_dimension: |
comment:6
Thank you. |
Changed branch from u/gh-kliem/merge_edges_ridges_f_vector to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We merge some duplications of obtaining edges, ridges and f-vector.
There was an entire copy of getting edges/ridges that also obtained the f-vector. But it is much simpler doing this directly in the f-vector code.
Also getting the edges/ridges is almost the same thing. We can let the
FaceIterator
worry about the details.Depends on #30443
CC: @jplab @LaisRast @tscrim
Component: geometry
Keywords: code duplication, combinatorial polyhedron
Author: Jonathan Kliem
Branch/Commit:
62b3d9f
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/30445
The text was updated successfully, but these errors were encountered: