Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(defn t [x] (apply (partial mapv vector) x)) (defn v* [u v] (reduce + (mapv * u v))) (defn shape [a] (comp (partition-all (count a)) (map vec))) (defn mm [a b] (into [] (shape a) (for [line a col (t b)] (v* line col)))) (def c (mm a b))
c = matmul (a,b)