IndxVec

Crates.io GitHub last commit (branch)

Usage

Insert into your Cargo.toml file [dependencies] section:

rust indxvec = "^0.1"

and import into your source file(s) any structs, functions and/or traits that you want:

rust use indxvec::{here,GV,merge::*,Indices};

Introduction

Indxvec is a spin-off from rstats, as a self-contained unit, both in subject matter and in not having any dependencies. Only tests.rs needs anyhow.

The tools included are: efficient ranking, sorting, merging, searching and indices manipulations. They are applicable to generic vectors: Vec\

Testing and Examples

Consult tests/tests.rs. To run the tests, use single thread. It will be slower but will produce the results in the right order:

rust cargo test --release -- --test-threads=1 --nocapture --color always

Macro, struct and functions

The main content is in the module src/merge.rs. See the documentation.

Trait Index

The functions of this trait are implemented for vectors of subscripts, i.e. &[usize].