Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Inspired by #9, this PR brings in the first metrics for meshes (very preliminary design!).
Why? tldr: modularization!
An important step of scalable FMaps (Magnet, 2023) consists of approximating the Laplace-Beltrami eigenbasis.
An important step for approximating the Laplace-Beltrami eigenbasis is the construction of local basis functions (Nasikun, 2018).
An important step for the construction of local basis functions is the computation of distances between sampling points and the original mesh.
There's multiple ways of computing distances given a mesh.
I'm providing a common interface to compute those distances.
For now, I've implemented the
EuclideanMetric
and theSingleSourceDijkstra
. Variants of the second are low hanging fruits. (Magnet, 2023) implements a variant ofSingleSourceDijkstra
.I hope this thread helps understanding a bit better the modularization steps I've started taking on scalable refactoring (51f6f50).
Of course I'm justifying this PR with scalable because it is the implementation we're pursuing at the moment requiring this, but needlessly to say these metrics will find a lot of applicability (e.g. the distance-based samplers we're discussing yesterday).
Other goals this PR will lead to: implementation of (Nasikun, 2018).
Still a draft because I need to think a bit more about the design and add other metrics.
Looking for your feedback @GiLonga, @gviga.