| Crates.io | karatsuba-rs |
| lib.rs | karatsuba-rs |
| version | 0.1.0 |
| created_at | 2020-11-12 14:08:15.709331+00 |
| updated_at | 2020-11-12 14:08:15.709331+00 |
| description | Karatsuba Implementation In Rust |
| homepage | https://github.com/immortalinfidel/karatsuba-rs |
| repository | https://github.com/immortalinfidel/karatsuba-rs |
| max_upload_size | |
| id | 311592 |
| size | 7,729 |
use karatsuba_rs::multiply;
use num_bigint::{BigInt};
let a = BigInt::from_str("1234567891011333456756333333333333335555555").unwrap();
let b = BigInt::from_str("12345678910113333453456").unwrap();
assert_eq!(BigInt::from(a.clone() * b.clone()).to_string(), multiply(a, b).to_string());