"matrix multiplication"

Written By Atticus Kuhn
Tags: "public", "project"
:PROPERTIES: :ID: 2c8015ad-488e-456c-9047-710e5ef155aa :mtime: 20231023034803 20231023024720 :ctime: 20231023024705 :END: #+title: matrix multiplication #+filetags: :public:project: * Definition Matrix Multiplication is how you combine two matricies. * Implementation using [[id:8952459c-5076-4e68-8a68-5f658209f39e][Ocaml]] #+BEGIN_SRC ocaml let dotprod = List.fold_left2 (fun acc a b -> acc + a * b) 0 #+END_SRC #+RESULTS: : <fun> #+BEGIN_SRC ocaml let rec matrix_multiplication a b = let columns = transpose a in map (fun row -> List.map (dotprod row) columns) b #+END_SRC #+RESULTS: : <fun>

See Also

Ocaml

Leave your Feedback in the Comments Section