Ancestors

Toot

Written by Stefano Rodighiero on 2024-10-18 at 19:59

"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

Descendants

Written by Panicz Maciej Godek on 2024-10-18 at 20:45

@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

Written by Svante on 2024-10-18 at 21:17

@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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113330195746509963
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
310.161783 milliseconds
Gemini-to-HTML Time
0.617561 milliseconds

This content has been proxied by September (ba2dc).