[![ndarray-badge]][ndarray] [![cat-science-badge]][cat-science]
ndarray::arr2
创建两维矩阵,并把它们加在一起。
extern crate ndarray;
use ndarray::arr2;
fn main() {
let a = arr2(&[[1, 2, 3],
[4, 5, 6]]);
let b = arr2(&[[6, 5, 4],
[3, 2, 1]]);
println!("Sum: {}", a + b);
}