Crates.io | tinyfield |
lib.rs | tinyfield |
version | 0.1.2 |
source | src |
created_at | 2020-12-03 11:25:02.423123 |
updated_at | 2021-08-11 09:54:34.668013 |
description | Small, finite fields. |
homepage | https://github.com/rspencer01/tinyfield |
repository | https://github.com/rspencer01/tinyfield |
max_upload_size | |
id | 319260 |
size | 174,031 |
no_std
RustThis crate exposes a number of small finite field types. It does not depend on the standard library.
At time of writing, the top few results for "rust finite fields" in a google search shows:
This crate attempts to supply:
u8
)This crate does not attempt to:
This crate should, in the future:
u32
std
Pull requests to make that happen would be most welcome.
Issues on the github tracker are also welcome.
# use tinyfield::prime_power_field::*;
type F = tinyfield::fields::GF9;
let delta = F::elts()
.filter(|x| x * x - 2.into() == F::zero)
.next()
.expect("GF9 should contain a square root of two");