simdprune 0.1.0

Pruning elements in SIMD vectors (i.e., packing left/compressing elements)
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 9 items with examples
  • Size
  • Source code size: 5.58 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 189.92 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • TheIronBorn/simdprune
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • TheIronBorn

Pruning elements in SIMD vectors

This crate is a port of Daniel Lemire's C library simdprune.

The mask "marks" values in the input for deletion. So if the mask is odd, then the first value is marked for deletion. This function produces a new vector that start with all values that have not been deleted.

Passing a mask of 0 would simply copy the provided vector.

Note that this is the opposite of the mask behavior of AVX512 VCOMPRESS/VPCOMRESS instructions. If you have AVX512 much of this crate can be performed with those instructions.

Examples

See prune_epi32.

Features

All features below are enabled by default.

  • std - Enables the standard library. Disabling this enables the no_std crate attribute.
  • large_tables - Enables functions like prune_epi8 which require large tables (>1MB). Disabling this may speed up compilation.