Argmm
Argmin/max with SIMD support for u8, i16, u16, i32 and f32 arrays and vectors.
Installing
Add the following to your Cargo.toml
argmm = "0.1.2"
Getting started
You can use the extention trait which will take advantage of SIMD if available
use ArgMinMax;
Alternatively, the generic function can be used if you require non-SIMD support for other types
use ;
Benchmarks
Using a MacBook Pro (Retina, 13-inch, Early 2015) Processor 2.7 GHz Dual-Core Intel Core i5 with an array size of 512.
See /benches/results.
Warning
NAN values are not supported.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.