1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

extern crate ndarray;

use ndarray::Array;
//use ndarray::{Si, S};

fn main()
{
    let mat = Array::range(0.0f32, 16.0).reshape((2, 4, 2));
    println!("{a:?}\n times \n{b:?}\nis equal to:\n{c:?}",
             a=mat.subview(2,1),
             b=mat.subview(0,1),
             c=mat.subview(2,1).mat_mul(&mat.subview(0,1)));

}