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

Karatsuba algorithm for multiplication #628

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

ajgara
Copy link

@ajgara ajgara commented May 14, 2024

Description

  • Add Karatsuba multiplication for QM31.
  • Add complex squaring for CM31.
  • Add benchmark for the square operation for CM31.

For the detail of the algorithms check this paper.

The PR does not include Karatsuba algorithm for CM31. When tested it did not improve the benchmarks. Possibly due to the already efficient algorithms for multiplication in M31.

Here's the performance improvement report:

benchmarkss


This change is Reviewable

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.

None yet

1 participant