#logarithmic #floats #representation

log_domain

Logarithmic representation of floats

3 unstable releases

Uses old Rust 2015

0.4.1 Jun 4, 2019
0.4.0 Dec 6, 2017
0.3.0 Nov 24, 2017

#1217 in Math

BSD-3-Clause

12KB
188 lines

rust-log-domain

Logarithmic representation of floats for rust.

License

BSD-3-clause

Documentation

Use

  • Include the crate in your rust project by adding
    log_domain = "0.4.1"
    
    to the [dependencies] in your Cargo.toml.
  • The crate contains a struct LogDomain<F> and appropriate implementations for common arithmetic operations. The struct is a newtype to allow zero-cost abstraction.

Dependencies

~335–570KB
~11K SLoC