afarray 0.3.2

Convenience methods for working with ArrayFire arrays in Rust
docs.rs failed to build afarray-0.3.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: afarray-0.15.1

afarray

Convenience methods for working with ArrayFire arrays in Rust, compatible with number-general.

Usage example:

use std::iter::FromIterator;
use afarray::Array;
use number_general::Number;

let a = [1, 2, 3];
let b = [5];

let product = &Array::from(&a[..]) * &Array::from(&b[..]);
assert_eq!(product, Array::from_iter(vec![5, 10, 15]));
assert_eq!(product.sum(), Number::from(30))

Note that you must have ArrayFire installed in order to build this crate. The installation instructions are at http://arrayfire.org/docs/installing.htm.

In particular, you will need to make the ArrayFire package discoverable to pkg-config by adding a pkg-config on your system's $PKG_CONFIG_PATH, like this arrayfire.pc config file:

prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib64

Name: arrayfire
Description: the ArrayFire library
Version: 3.8
Libs: -L${libdir}