"Multiplying matrices using functional programming" by David Johnson-Davies http://www.lispology.com/show?4WYX
[#]lisp
=> More informations about this toot | More toots from eslr@mastodon.social
@eslr
I like it when code feels discovered, rather than invented. I wrote this set of functions many years ago:
https://github.com/plande/grand-scheme/blob/master/grand/matrix.scm
=> More informations about this toot | More toots from PaniczGodek@functional.cafe
@eslr Okay, nice. 👍
Two small improvements maybe:
(defun transpose (list)
(apply #'mapcar #'list list))
(defun dot (x y)
(reduce #'+ (mapcar #'* x y)))
=> More informations about this toot | More toots from Ardubal@mastodon.xyz This content has been proxied by September (ba2dc).Proxy Information
text/gemini