use ndarray::arr2;
      
      fn main() {
        let a = arr2(&[[1, 2, 3],
          [4, 5, 6]]);
        let b = arr2(&[[6, 3],
          [5, 2],
          [4, 1]]);
        println!("{}", a.dot(&b));
      }
      
      Rust language logo

      Multiplying matrices

      Codiga's Rust Recipes

      multiply 2d matrices

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.