ordist

Crates.ioordist
lib.rsordist
version0.2.0
sourcesrc
created_at2020-11-02 07:57:02.107228
updated_at2020-11-07 09:16:44.014592
descriptionOrder distance package
homepage
repositoryhttps://github.com/doraneko94/ordist
max_upload_size
id307775
size26,771
Shuntaro Ohno (doraneko94)

documentation

https://docs.rs/ordist/

README

ordist

Order distance package.

usage

use ordist::distances::*;
use ordist::permutation::*;
fn main() {
    let v1 = vec![1, 2, 3, 4, 5];
    let v2 = vec![3, 4, 1, 2, 5];
    println!(
        "{} == {}",
        cayley_dist(&v1, &v2).unwrap(),
        v1.len() - n_circle(&v1, &v2).unwrap()
    );
}
Commit count: 11

cargo fmt