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

Added karatsuba multiplication #26

Closed
wants to merge 1 commit into from

Conversation

SagnikDey92
Copy link

To demonstrate that the tests work, I've kept the default multiplication as Karatsuba.
Once I get the thumbs up, I'll revert the default multiplication to long multiplication and then karatsuba can only be accessed via function k_multiply.

Copy link
Collaborator

@Laouen Laouen left a comment

Choose a reason for hiding this comment

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

The code looks fine, but you should have duplicated tests instead of setting k_multiplication as the default multiplication. Do de following changes and commit so we merge this PR:

  • Revert the default multiplication to long multiplication.
  • Duplicate tests to have the same tests for each multiplication algorithm.

@sdavtaker
Copy link

Merged, there is issues, but we going back to a single branch for now.

@sdavtaker sdavtaker closed this Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants