simdvec 0.1.0

Vectors, but with the operational speedup of SIMD!
Documentation
  • Coverage
  • 5%
    1 out of 20 items documented0 out of 18 items with examples
  • Size
  • Source code size: 13.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Razboy20/simdvec
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Razboy20

SIMD Vec

An easy way to make/work with arbitrary length Vecs, with the benefits of SIMD.

Very much a WIP, a lot of methods still need implementing, and documentation is currently nonexistant. Contributions are welcome!

Examples

let vec = vec![1, 2, 3]; // or any other Vec/slice of Simd-compatible types
let simd_vec: SimdVec<_, 16> = vec.into(); // or SimdVec::from([1, 2, 3]), ...

// do some operations
assert_eq!(&simd_vec + SimdVec::from([5, 6, 7, 6, 5, 4]), SimdVec::from([6, 8, 10, 6, 5, 4]));
assert_eq!(simd_vec.reduce_sum(), 6);

// ... and more, mostly replicated from methods that Simd types have.