Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
(defn initial-mtx [i1 i2 value]
|
||||
(vec (repeat i1 (vec (repeat i2 value)))))
|
||||
|
||||
(defn operation [f mtx1 mtx2]
|
||||
(if (vector? mtx1)
|
||||
(vec (map #(vec (map f %1 %2)) mtx1 mtx2)))
|
||||
(recur f (initial-mtx (count mtx2) (count (first mtx2)) mtx1) mtx2)
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue