ndarray-conv-0.1.0 has been yanked.
ndarray-conv
ndarray-conv is a crate that provides a fast convolutions library in pure Rust.
Inspired by
ndarray-vision (https://github.com/rust-cv/ndarray-vision)
convolutions-rs (https://github.com/Conzel/convolutions-rs#readme)
pocketfft (https://github.com/mreineck/pocketfft)
ndarray-conv is still under heavily developing, the first stage aims to provide a fast conv_2d func for ndarray::Array2.
First Stage
- basic conv_2d
- use rayon to accelerate big matrix's conv_2d computation
- use fft to accelerate big kernel's conv_2d computation
Roughly Bench
without rayon
2x-4x faster than ndarray-vision and 4x-10x faster than convolutions-rs. 2x-4x slower than opencv with small kernel (size < 11)
with rayon
2x faster than opencv with small kernel (size < 11)
Example
use *;
x.conv_2d;