programextensions/blender/demos/matmul-steps.xtl
Blender, 6: a matrix product a step at a time, arrays to video. C = A x B for X_eTaL-gpu's matmul demo ([3 4] x [4 2], by its Accel library): A on the left wall, B on the ceiling, C on the back wall. Item by item, a row of A and a column of B light up, their four products appear in the cube between them and fly into C's item, which shows their sum; then all six at once, as a GPU works them out, one work-item each. Every place, color and time is an array worked out in X_eTaL (demos/Matmul.xtl); Video.xtl writes them into the script Blender runs. Explained step by step in docs/literate/matmul.org. Run: just demo blender matmul-steps (a few minutes: 466 frames)
script : Char
script ← ((1920, 1080) ᵐᵐs̲teps 0) c̲at ((0.8 2.6 3.9 8.5 13.0, "matmul-steps") ᵛᵈs̲tills 0) c̲at (ᵛᵈr̲ender "matmul-steps.mp4") c̲at ᵛᵈreport
Used in: _
_ : Int
_ ← "work/explain/run.py" ᵇˡw̲rite! ᵇᵖlauncher
r : Char
r ← "work/explain/run.py" ᵇˡr̲un! "work/explain/matmul-steps.py work/explain/out"
Used in: lines