Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,7 +1,7 @@
|
|||
(defun matrix* (matrix-1 matrix-2)
|
||||
(list-comp
|
||||
((<- a matrix-1))
|
||||
(list-comp
|
||||
((<- b (transpose matrix-2)))
|
||||
(lists:foldl #'+/2 0
|
||||
(lists:zipwith #'*/2 a b)))))
|
||||
(defun matrix*-map (m1 m2)
|
||||
(let ((m2T (transpose m2)))
|
||||
(lists:map
|
||||
(lambda (row)
|
||||
(lists:map (lambda (col) (dot-product row col))
|
||||
m2T))
|
||||
m1)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue