Docs.rs
fast-distances-0.0.1
fast-distances 0.0.1
Permalink
Docs.rs crate page
Links
Homepage
Repository
crates.io
Source
Owners
eugenehp
Dependencies
approx ^0.5.1
normal
ndarray ^0.16.1
normal
num ^0.4.3
normal
num-traits ^0.2.19
normal
Versions
87.5%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Module utils
fast_
distances
0.0.1
Module utils
Module Items
Functions
In crate fast_
distances
fast_distances
Module
utils
Copy item path
Source
Functions
ยง
cost_
matrix
identity_
matrix
ones_
vector
sign
sign is a function that takes a floating-point number (f64 in this case) as input and returns an integer (i32). If a is less than 0.0, it returns -1, otherwise it returns 1.