Files
marqdo/examples/linalg-transpose/index.mq.md
T
cflmyandCursor f3c49e86ae feat(linalg): F2 declare from GFM table and lecture example
Add la.declare for batch MatrixSymbol from @-record tables, ship
examples/linalg-transpose, and mark formula-doc F2 done.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 15:52:46 +08:00

627 B


title: Transpose identity (formula document) description: (AB)^T = B^T A^T as a runnable lecture fragment. import la:ext/linalg/linalg.mq.md

Transpose reverses products

Declare shapes in a table, form (P = AB), then check ((AB)^\top = B^\top A^\top) by running the document.

main

shapes =

@ name rows cols
1 A 2 3
2 B 3 2

env = > la.declare table=shapes A = env[^A] B = env[^B] P = A * B Pt = > P.T t = > Pt.ascii

print text=t

  1. t == "B^T*A^T"

print text=identity-ok

print text=identity-fail