Skip to content
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

Use reference instead of pointer to simplify code #30529

Closed
kliem opened this issue Sep 8, 2020 · 9 comments
Closed

Use reference instead of pointer to simplify code #30529

kliem opened this issue Sep 8, 2020 · 9 comments

Comments

@kliem
Copy link
Contributor

kliem commented Sep 8, 2020

By using a reference to a structure the code is much better to read.

Instead of structptr[0].newfaces[structptr[0].current_dimension-1] we now have structure.newfaces[structure.current_dimension-1].

Depends on #30524

CC: @tscrim

Component: geometry

Keywords: combinatorial polyhedron, face iterator

Author: Jonathan Kliem

Branch/Commit: 5b21614

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/30529

@kliem kliem added this to the sage-9.2 milestone Sep 8, 2020
@kliem
Copy link
Contributor Author

kliem commented Sep 8, 2020

Changed keywords from none to combinatorial polyhedron, face iterator

@kliem kliem modified the milestones: sage-9.2, sage-9.3 Sep 8, 2020
@tscrim
Copy link
Collaborator

tscrim commented Sep 8, 2020

comment:3

If you could just rebase the branch to clean up the history a bit, then you can set a positive review.

@tscrim
Copy link
Collaborator

tscrim commented Sep 8, 2020

Reviewer: Travis Scrimshaw

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 9, 2020

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

f3e2ddcprepare slightly modified algorithm for simple/simplicial polytopes
edad681typo
5939b5dfaster algorithm for simple/simplicial polytopes
f997cecsmall fixes
63b7bd6improvements in documentation
f2edc3dget rid of maybe_newfaces
6dfbe81get rid of compute_dimension_loop
f2dd072do not expose the coatoms
fc8124afix mistake
4f86f02use reference so simplify code

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 9, 2020

Changed commit from df7d31c to 4f86f02

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 9, 2020

Changed commit from 4f86f02 to 5b21614

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 9, 2020

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

5b21614use reference so simplify code

@kliem
Copy link
Contributor Author

kliem commented Sep 9, 2020

comment:6

Replying to @tscrim:

If you could just rebase the branch to clean up the history a bit, then you can set a positive review.

Thank you. This ticket is only one commit. Now you can see it.

@vbraun
Copy link
Member

vbraun commented Nov 29, 2020

Changed branch from u/gh-kliem/simplify_face_struct_pointer to 5b21614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants