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

PermutationMap #425

Open
dannys4 opened this issue Aug 26, 2024 · 0 comments
Open

PermutationMap #425

dannys4 opened this issue Aug 26, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dannys4
Copy link
Contributor

dannys4 commented Aug 26, 2024

I'd like a map that allows me to shuffle coordinates. This obviously can be done with an Affine map, but that's a frustrating amount of BLAS overhead for something that's far more "embarrassingly parallel". If we have permutation map $S(x)=Px$ for some matrix $P$, of course, we have
$$S^{-1}(x)=P^\top x$$
$$\log|\nabla S(x)| = \log|P| = 0$$
$$\nabla_x\log|\nabla S(x)| = 0$$

Of course, similar to AffineMap, we don't include the permutation in the varied parameters and thus there are no coefficients.

This would be a great straightforward contribution for someone getting started with the codebase.

@dannys4 dannys4 added enhancement New feature or request good first issue Good for newcomers labels Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant