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

Store computed distances #104

Open
markusbaumeister opened this issue Dec 18, 2019 · 0 comments
Open

Store computed distances #104

markusbaumeister opened this issue Dec 18, 2019 · 0 comments

Comments

@markusbaumeister
Copy link
Collaborator

Currently, distances between vertices (or faces) are not stored.

Implement optional storage in the following fashion:

  1. Add a record component DistanceMatrix to the representation of twisted polygonal complexes.
    This component should store partial distance information about the vertices.
  2. Add the methods "StoreDistances" and "DeleteDistances" to initialise the matrix or to delete it
    completely.
  3. Within each distance calculation, do the following:
    -> Check whether distances are stored (by checking whether the matrix exists)
    -> If it exists, check whether the result is known
    -> For known result, return it
    -> Otherwise: Compute the distance
    -> If distances are stored, the result is written in the matrix
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

1 participant