Go to file
Josh Stone 1ddbee7f37 bigint mac3: tweak thresholds between algorithms
It's not too rigorous, but thresholds 32 and 256 give me better results.

Before:

     test multiply_0        ... bench:          87 ns/iter (+/- 0)
     test multiply_1        ... bench:      11,926 ns/iter (+/- 19)
     test multiply_2        ... bench:     772,178 ns/iter (+/- 3,068)
     test multiply_3        ... bench:   2,034,237 ns/iter (+/- 9,618)

After:

     test multiply_0        ... bench:          87 ns/iter (+/- 0)
     test multiply_1        ... bench:      11,927 ns/iter (+/- 64)
     test multiply_2        ... bench:     672,440 ns/iter (+/- 3,570)
     test multiply_3        ... bench:   1,577,065 ns/iter (+/- 11,137)
2017-09-20 13:19:00 -07:00
benches Add a bench for bigint multiply 2017-08-03 18:30:09 +02:00
bigint bigint mac3: tweak thresholds between algorithms 2017-09-20 13:19:00 -07:00
ci Test and fix subcrates with --no-default-features 2017-06-09 09:54:50 -07:00
complex complex: bump to 0.1.40 with fixed traits dep 2017-07-23 21:24:34 -07:00
derive derive: bump to 0.1.41 2017-07-14 17:36:17 -07:00
doc Update repo and doc links 2015-11-12 18:40:13 -08:00
integer integer: bump to 0.1.35 2017-07-14 17:30:18 -07:00
iter iter: bump to 0.1.34 2017-07-14 17:38:12 -07:00
macros Add keywords and categories to subcrates too. 2017-07-11 09:30:42 +01:00
rational rational: bump to 0.1.39 2017-07-14 17:39:21 -07:00
src Made requested changes. 2017-02-07 13:02:32 -07:00
traits traits: bump to 0.1.40 2017-07-14 17:28:12 -07:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
.travis.yml Whitelist branches for CI 2017-07-08 22:28:49 -07:00
Cargo.toml Add CI badge 2017-07-25 00:17:17 +02:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
README.md Add CI badge 2017-07-25 00:16:07 +02:00
bors.toml Enable bors-ng 2017-07-08 22:29:48 -07:00

README.md

num

A collection of numeric types and traits for Rust.

This includes new types for big integers, rationals, and complex numbers, new traits for generic programming on numeric properties like Integer, and generic range iterators.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
num = "0.1"

and this to your crate root:

extern crate num;

Compatibility

Most of the num crates are tested for rustc 1.8 and greater. The exceptions are num-derive which requires at least rustc 1.15, and the deprecated num-macros which requires nightly rustc.