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

Reverse distributor #1025

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

mrlag31
Copy link
Contributor

@mrlag31 mrlag31 commented Jan 16, 2024

This PR adds the "reverse distributor" and is a private type used later for the distributed moving least squares. It adds the DistributedValuesDistributor class in namespace Interpolation::Details which wraps around a Details::Distributor.

When querying a distributed tree, it will give back a list of index-rank pairs. DistributedValuesDistributor uses that list and creates an object that distributes values regarding it (and can repeat that last operation).

For example:

Process Indices Ranks Source values Distributed values
0 2 1 1 0 1 0 1 1 a b c y b x w
1 0 0 1 1 1 0 w x y z w w b

@aprokop aprokop self-assigned this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants