Skip to content

Conversation

@fboemer
Copy link
Contributor

@fboemer fboemer commented Sep 24, 2021

Switch the EltwiseMultMod implementation to "Generalized Barrett modular reduction" (Algorithm 2).

Largely, the implementation is unchanged. However, we now have a stronger certainty that the approximate modular reduction is at most off by one from the true modulus. That is, the "while" condition from Algorithm 1 is now the "if" condition of Algorithm 2 with certainty.

@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:07 Inactive
@fboemer fboemer changed the title Fboemer/mult mod test Generalized Barrett Reduction Sep 24, 2021
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer deployed to intel_workflow September 24, 2021 19:19 Active
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:19 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer temporarily deployed to intel_workflow September 24, 2021 19:20 Inactive
@fboemer fboemer marked this pull request as ready for review September 24, 2021 20:01
@fboemer fboemer requested a review from a team as a code owner September 24, 2021 20:01
Copy link
Contributor

@GelilaSeifu GelilaSeifu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great.

Copy link
Contributor

@hamishun hamishun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@fboemer fboemer merged commit 2520a51 into main Sep 27, 2021
@fboemer fboemer deleted the fboemer/mult-mod-test branch September 27, 2021 15:17
fboemer added a commit that referenced this pull request Nov 8, 2021
Switch to generalized Barrett reduction
joserochh pushed a commit that referenced this pull request May 13, 2025
Switch to generalized Barrett reduction
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.

3 participants