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

Refactor to use a std::pair to hold factor index and axis refs. #200

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 13, 2024

Refactor to use a std::pair to hold factor index and axis refs.

This simplifies the logic a bit, and aligns better with the algorithm which picks the factor-axes pair with the largest count at each iteration. Also prepares a different implementation that keeps a mapvector of factor-axes pairs and treverses the vector in the non-increasing order of their counts.

@copybara-service copybara-service bot changed the title Refactor to use a struct to hold factor index and axis refs. Refactor to use a std::pair to hold factor index and axis refs. Nov 14, 2024
This simplifies the logic a bit, and aligns better with the algorithm which picks the factor-axes pair with the largest count at each iteration. Also prepares a different implementation that keeps a mapvector of factor-axes pairs and treverses the vector in the non-increasing order of their counts.

PiperOrigin-RevId: 696463524
@copybara-service copybara-service bot merged commit 7549f48 into main Nov 14, 2024
@copybara-service copybara-service bot deleted the test_696112797 branch November 14, 2024 11:48
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.

1 participant