use ndarray::Array2; fn main() { let a = Array2::from_shape_vec((2, 2), vec![1.0, 2.0, 3.0, 4.0]).unwrap(); let b = Array2::from_shape_vec((2, 2), vec![5.0, 6.0, 7.0, 8.0]).unwrap(); let c = a.dot(&b); println!("ضرب ماتریسها:\n{:?}", c); }