karatsuba-rs

Crates.iokaratsuba-rs
lib.rskaratsuba-rs
version0.1.0
sourcesrc
created_at2020-11-12 14:08:15.709331
updated_at2020-11-12 14:08:15.709331
descriptionKaratsuba Implementation In Rust
homepagehttps://github.com/immortalinfidel/karatsuba-rs
repositoryhttps://github.com/immortalinfidel/karatsuba-rs
max_upload_size
id311592
size7,729
sabin chitrakar (sabinchitrakar)

documentation

README

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());
Commit count: 4

cargo fmt