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
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.