Skip to content

[integer] Implement several dunder methods for BigUInt#57

Merged
forfudan merged 1 commit intomainfrom
work
Mar 25, 2025
Merged

[integer] Implement several dunder methods for BigUInt#57
forfudan merged 1 commit intomainfrom
work

Conversation

@forfudan
Copy link
Copy Markdown
Owner

This pull request introduces several enhancements and new features to the decimojo library, focusing on arithmetic operations, comparison functions, and benchmarking. The most important changes are the addition of the Toom-Cook 3-way multiplication algorithm, new power and comparison methods for the BigUInt structure, and updates to the benchmarking script.

Arithmetic Enhancements:

Power Methods:

Comparison Functions:

  • src/decimojo/biguint/comparison.mojo: Added new comparison functions (greater, greater_equal, less, less_equal, equal, not_equal) to facilitate comparisons between BigUInt instances.

Benchmarking:

  • benches/biguint/bench.mojo: Updated the benchmarking script to include the bench_multiply function for testing multiplication performance.

Documentation:

  • README.md: Corrected a typo in the section heading "Nomenclature".

@forfudan forfudan merged commit 629e416 into main Mar 25, 2025
1 check passed
@forfudan forfudan deleted the work branch March 25, 2025 21:36
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