Multiplying matrices

    0

    0

    Giovanny Gongora

    Codiga's Rust Recipes

    multiply 2d matrices

    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));
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.