arr-rs
Crate
Implementation of numpy-inspired multidimensional, generic arrays.
Documentation of the crate is available here
How to use
[]
= "0.5.1"
Examples
// import the crate
use *;
// create an array: (4 elements, 2 dimensions)
let arr = new;
// create same array using macro:
let arr: = array!;
// create random array with the same shape:
let arr = rand;
// array supports display and pretty display
let arr: = array!;
println!;
println!;
// perform some chained operations on array:
let res = arr
.map
.filter
.ravel
.slice;
Benchmark
Benchmark results can be found here
License
This project is licensed under either of the following licenses, at your option:
- 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])