arrayfire 3.8.0

ArrayFire is a high performance software library for parallel computing with an easy-to-use API. Its array based function set makes parallel programming simple. ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it platform independent and highly portable. A few lines of code in ArrayFire can replace dozens of lines of parallel computing code, saving you valuable time and lowering development costs. This crate provides Rust bindings for ArrayFire library.
Documentation
use arrayfire::*;
use num::Complex;

fn main() {
    set_device(0);
    info();
    let samples = 10;
    let dims = Dim4::new(&[samples, 1, 1, 1]);

    let values = vec![
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
        Complex::new(0.0, 2.0),
    ];

    let signal = Array::new(&values, dims);

    af_print!("signal", signal);

    // Used length of input signal as norm_factor
    let output = fft(&signal, 0.1, samples as i64);

    af_print!("Output", output);
}